* @param array $bindings * @param bool $useReadPdo * @return array */ public function select($query, $bindings = [], $useReadPdo = true) { return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; } // For select statements, we'll simply execute the query and return an array // of the database result set. Each element in the array will be a single // row from the database table, and will either be an array or objects. $statement = $this->prepared($this->getPdoForSelect($useReadPdo) ->prepare($query)); $this->bindValues($statement, $this->prepareBindings($bindings)); $statement->execute(); return $statement->fetchAll(); }); } /** * Run a select statement against the database and returns a generator. * * @param string $query * @param array $bindings * @param bool $useReadPdo * @return \Generator */ public function cursor($query, $bindings = [], $useReadPdo = true) { $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { if ($this->pretending()) { return []; }
"Allowed memory size of 268435456 bytes exhausted (tried to allocate 782336 bytes)"
Key | Value |
id | "3797"
|
media_type | "MP3"
|
Key | Value |
USER | "admin"
|
HOME | "/home/admin"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_ACCEPT | "*/*"
|
HTTP_HOST | "sa-ngob.com"
|
SCRIPT_FILENAME | "/home/admin/domains/sa-ngob.com/private_html/index.php"
|
REDIRECT_STATUS | "200"
|
SERVER_NAME | "sa-ngob.com"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "103.91.191.34"
|
REMOTE_PORT | "53364"
|
REMOTE_ADDR | "54.236.245.71"
|
SERVER_SOFTWARE | "nginx/1.19.8"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
HTTPS | "on"
|
REQUEST_SCHEME | "https"
|
SERVER_PROTOCOL | "HTTP/2.0"
|
DOCUMENT_ROOT | "/home/admin/domains/sa-ngob.com/private_html"
|
DOCUMENT_URI | "/index.php"
|
REQUEST_URI | "/book-detail/play-media?id=3797&media_type=MP3"
|
SCRIPT_NAME | "/index.php"
|
CONTENT_LENGTH | "" |
CONTENT_TYPE | "" |
REQUEST_METHOD | "GET"
|
QUERY_STRING | "id=3797&media_type=MP3"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1711709991.9886
|
REQUEST_TIME | 1711709991
|
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:i/m2zcSbAnSQswIn6xgTQWkKXpjq3VguucrMaM2OSbU="
|
APP_DEBUG | "true"
|
APP_URL | "http://localhost"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "localhost"
|
DB_PORT | "3306"
|
DB_DATABASE | "admin_sa"
|
DB_USERNAME | "admin_sa"
|
DB_PASSWORD | "1jIRKG6Y"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
QUEUE_CONNECTION | "sync"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "smtp"
|
MAIL_HOST | "smtp.mailtrap.io"
|
MAIL_PORT | "2525"
|
MAIL_USERNAME | "null"
|
MAIL_PASSWORD | "null"
|
MAIL_ENCRYPTION | "null"
|
AWS_ACCESS_KEY_ID | "" |
AWS_SECRET_ACCESS_KEY | "" |
AWS_DEFAULT_REGION | "us-east-1"
|
AWS_BUCKET | "" |
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
MIX_PUSHER_APP_KEY | "" |
MIX_PUSHER_APP_CLUSTER | "mt1"
|
Key | Value |
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:i/m2zcSbAnSQswIn6xgTQWkKXpjq3VguucrMaM2OSbU="
|
APP_DEBUG | "true"
|
APP_URL | "http://localhost"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "localhost"
|
DB_PORT | "3306"
|
DB_DATABASE | "admin_sa"
|
DB_USERNAME | "admin_sa"
|
DB_PASSWORD | "1jIRKG6Y"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
QUEUE_CONNECTION | "sync"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "smtp"
|
MAIL_HOST | "smtp.mailtrap.io"
|
MAIL_PORT | "2525"
|
MAIL_USERNAME | "null"
|
MAIL_PASSWORD | "null"
|
MAIL_ENCRYPTION | "null"
|
AWS_ACCESS_KEY_ID | "" |
AWS_SECRET_ACCESS_KEY | "" |
AWS_DEFAULT_REGION | "us-east-1"
|
AWS_BUCKET | "" |
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
MIX_PUSHER_APP_KEY | "" |
MIX_PUSHER_APP_CLUSTER | "mt1"
|