* @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 134217728 bytes exhausted (tried to allocate 11462528 bytes)"
Key | Value |
page | "614"
|
Key | Value |
PATH | "/usr/local/bin:/bin:/usr/bin"
|
HTTP_ACCEPT | "*/*"
|
HTTP_HOST | "hamrokhabar.com"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_X_HTTPS | "1"
|
DOCUMENT_ROOT | "/home/hamrokhabar/public_html"
|
REMOTE_ADDR | "3.145.201.71"
|
REMOTE_PORT | "31267"
|
SERVER_ADDR | "23.106.253.219"
|
SERVER_NAME | "hamrokhabar.com"
|
SERVER_ADMIN | "webmaster@hamrokhabar.com"
|
SERVER_PORT | "443"
|
REQUEST_SCHEME | "https"
|
REQUEST_URI | "/category/news?page=614"
|
REDIRECT_URL | "/category/news"
|
REDIRECT_QUERY_STRING | "page=614"
|
REDIRECT_REQUEST_METHOD | "GET"
|
HTTPS | "on"
|
REDIRECT_STATUS | "200"
|
X_SPDY | "HTTP2"
|
SSL_PROTOCOL | "TLSv1.3"
|
SSL_CIPHER | "TLS_AES_256_GCM_SHA384"
|
SSL_CIPHER_USEKEYSIZE | "256"
|
SSL_CIPHER_ALGKEYSIZE | "256"
|
SCRIPT_FILENAME | "/home/hamrokhabar/public_html/index.php"
|
QUERY_STRING | "page=614"
|
SCRIPT_URI | "https://hamrokhabar.com/category/news"
|
SCRIPT_URL | "/category/news"
|
SCRIPT_NAME | "/index.php"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
SERVER_SOFTWARE | "LiteSpeed"
|
REQUEST_METHOD | "GET"
|
X-LSCACHE | "on"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1713457923.9429
|
REQUEST_TIME | 1713457923
|
argv | array:1 [ 0 => "page=614" ] |
argc | 1
|
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:CWYe6Dm7SvkdN7U4xnhEZxlgFEpTMIejAHBpQiCDyyQ="
|
APP_DEBUG | "true"
|
APP_URL | "http://localhost"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "hamrokha_news"
|
DB_USERNAME | "hamrokha_news"
|
DB_PASSWORD | "xAVaE;F?](N%"
|
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"
|
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:CWYe6Dm7SvkdN7U4xnhEZxlgFEpTMIejAHBpQiCDyyQ="
|
APP_DEBUG | "true"
|
APP_URL | "http://localhost"
|
LOG_CHANNEL | "stack"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "hamrokha_news"
|
DB_USERNAME | "hamrokha_news"
|
DB_PASSWORD | "xAVaE;F?](N%"
|
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"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
MIX_PUSHER_APP_KEY | "" |
MIX_PUSHER_APP_CLUSTER | "mt1"
|