/** * Report or log an exception. * * This is a great spot to send exceptions to Sentry, Bugsnag, etc. * * @param \Exception $exception * @return void */ public function report(Exception $exception) { // $user = Auth::getLastAttempted(); // print_r($user); exit; // print_r(\Auth::user()['id']); exit; // Report to log (storage/logs/laravel.log) parent::report($exception); /* Not main account. */ if (\Auth::user()['id'] != 1) { // 404 Exception -> Report to Bugsnag if ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) { // Url not found header('location:' . env('APP_DIR') . '/error/url'); exit; } else { // Application error header('location:' . env('APP_DIR') . '/error/general'); exit; } } } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request
"Trying to access array offset on value of type null"
/** * Report or log an exception. * * This is a great spot to send exceptions to Sentry, Bugsnag, etc. * * @param \Exception $exception * @return void */ public function report(Exception $exception) { // $user = Auth::getLastAttempted(); // print_r($user); exit; // print_r(\Auth::user()['id']); exit; // Report to log (storage/logs/laravel.log) parent::report($exception); /* Not main account. */ if (\Auth::user()['id'] != 1) { // 404 Exception -> Report to Bugsnag if ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) { // Url not found header('location:' . env('APP_DIR') . '/error/url'); exit; } else { // Application error header('location:' . env('APP_DIR') . '/error/general'); exit; } } } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request
} /** * Handle an uncaught exception from the application. * * Note: Most exceptions can be handled via the try / catch block in * the HTTP and Console kernels. But, fatal error exceptions must * be handled differently since they are not normal exceptions. * * @param \Throwable $e * @return void */ public function handleException($e) { if (! $e instanceof Exception) { $e = new FatalThrowableError($e); } try { $this->getExceptionHandler()->report($e); } catch (Exception $e) { // } if ($this->app->runningInConsole()) { $this->renderForConsole($e); } else { $this->renderHttpResponse($e); } } /** * Render an exception to the console. * * @param \Exception $e * @return void */ protected function renderForConsole(Exception $e) { $this->getExceptionHandler()->renderForConsole(new ConsoleOutput, $e);
Key | Value |
USER | "admin"
|
HOME | "/home/admin"
|
SCRIPT_NAME | "/hemzaden/public/index.php"
|
REQUEST_URI | "/hemzaden/public/media/image/322/391200-pioneer-blue.jpg"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/2.0"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/hemzaden/public/media/image/322/391200-pioneer-blue.jpg"
|
REMOTE_PORT | "54190"
|
SCRIPT_FILENAME | "/home/admin/domains/toolshed.online/private_html/hemzaden/public/index.php"
|
SERVER_ADMIN | "webmaster@toolshed.online"
|
CONTEXT_DOCUMENT_ROOT | "/home/admin/domains/toolshed.online/private_html"
|
CONTEXT_PREFIX | "" |
REQUEST_SCHEME | "https"
|
DOCUMENT_ROOT | "/home/admin/domains/toolshed.online/private_html"
|
REMOTE_ADDR | "3.95.2.54"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "149.210.219.38"
|
SERVER_NAME | "www.toolshed.online"
|
SERVER_SOFTWARE | "Apache/2"
|
SERVER_SIGNATURE | "" |
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
HTTP_HOST | "www.toolshed.online"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_ACCEPT | "*/*"
|
proxy-nokeepalive | "1"
|
H2_STREAM_TAG | "1184-2345-3"
|
H2_STREAM_ID | "3"
|
H2_PUSHED_ON | "" |
H2_PUSHED | "" |
H2_PUSH | "off"
|
H2PUSH | "off"
|
HTTP2 | "on"
|
SSL_TLS_SNI | "www.toolshed.online"
|
HTTPS | "on"
|
UNIQUE_ID | "ZgalJjrHM0S-2UyYA5Sq1AAA_AM"
|
REDIRECT_STATUS | "200"
|
REDIRECT_H2_STREAM_TAG | "1184-2345-3"
|
REDIRECT_H2_STREAM_ID | "3"
|
REDIRECT_H2_PUSHED_ON | "" |
REDIRECT_H2_PUSHED | "" |
REDIRECT_H2_PUSH | "off"
|
REDIRECT_H2PUSH | "off"
|
REDIRECT_HTTP2 | "on"
|
REDIRECT_SSL_TLS_SNI | "www.toolshed.online"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_dont-vary | "1"
|
REDIRECT_no-gzip | "1"
|
REDIRECT_UNIQUE_ID | "ZgalJjrHM0S-2UyYA5Sq1AAA_AM"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/hemzaden/public/index.php"
|
REQUEST_TIME_FLOAT | 1711711526,8226
|
REQUEST_TIME | 1711711526
|
APP_NAME | "Toolshed_website_CMS"
|
APP_ENV | "local"
|
APP_KEY | "base64:rNirORjEBH4UHeQmiLMacg9BixDFtUXHHKpMzut9MsQ="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "https://www.toolshed.online/hemzaden/"
|
APP_DIR | "/hemzaden"
|
APP_DIR_SESSION | "/hemzaden"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "toolshed_v2_hemzaden_website"
|
DB_USERNAME | "root"
|
DB_PASSWORD | "rbhLZHAm"
|
DB_DATABASE_IMPORT | "toolshed_v2_hemzaden_website"
|
DB_USERNAME_IMPORT | "root"
|
DB_PASSWORD_IMPORT | "rbhLZHAm"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "smtp"
|
MAIL_HOST | "smtp.sendgrid.net"
|
MAIL_PORT | "2525"
|
MAIL_USERNAME | "tech@equix.nl"
|
MAIL_PASSWORD | "basenrobert#01"
|
MAIL_ENCRYPTION | "null"
|
MAIL_FROM_EMAIL | "hemzaden@boltmailer.nl"
|
MAIL_FROM_NAME | "Hem_Zaden"
|
MAIL_SALT_NEWSLETTER | "{dm.2c0zh3_a"
|
MAIL_NO_REPLY | "no-reply@boltmailer.nl"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
LOCALE | "nl_NL"
|
TIMEZONE | "Europe/Amsterdam"
|
HANDSHAKE | "on46z4!\a.Qz"
|
SALT | "cn2#$Zkn1l.a"
|
REMOTE_WEBSITE_1 | "https://www.hemzaden.nl/"
|
REMOTE_WEBSITE_CACHE_1 | "https://www.hemzaden.nl/connect/cache"
|
REMOTE_WEBSITE_DB_1 | "https://www.hemzaden.nl/connect/db"
|
REMOTE_WEBSITE_STATS_1 | "" |
REMOTE_WEBSITE_MAIL_1 | "" |
REMOTE_WEBSITE_DB 1 | "" |
Key | Value |
APP_NAME | "Toolshed_website_CMS"
|
APP_ENV | "local"
|
APP_KEY | "base64:rNirORjEBH4UHeQmiLMacg9BixDFtUXHHKpMzut9MsQ="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "https://www.toolshed.online/hemzaden/"
|
APP_DIR | "/hemzaden"
|
APP_DIR_SESSION | "/hemzaden"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "toolshed_v2_hemzaden_website"
|
DB_USERNAME | "root"
|
DB_PASSWORD | "rbhLZHAm"
|
DB_DATABASE_IMPORT | "toolshed_v2_hemzaden_website"
|
DB_USERNAME_IMPORT | "root"
|
DB_PASSWORD_IMPORT | "rbhLZHAm"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "smtp"
|
MAIL_HOST | "smtp.sendgrid.net"
|
MAIL_PORT | "2525"
|
MAIL_USERNAME | "tech@equix.nl"
|
MAIL_PASSWORD | "basenrobert#01"
|
MAIL_ENCRYPTION | "null"
|
MAIL_FROM_EMAIL | "hemzaden@boltmailer.nl"
|
MAIL_FROM_NAME | "Hem_Zaden"
|
MAIL_SALT_NEWSLETTER | "{dm.2c0zh3_a"
|
MAIL_NO_REPLY | "no-reply@boltmailer.nl"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
LOCALE | "nl_NL"
|
TIMEZONE | "Europe/Amsterdam"
|
HANDSHAKE | "on46z4!\a.Qz"
|
SALT | "cn2#$Zkn1l.a"
|
REMOTE_WEBSITE_1 | "https://www.hemzaden.nl/"
|
REMOTE_WEBSITE_CACHE_1 | "https://www.hemzaden.nl/connect/cache"
|
REMOTE_WEBSITE_DB_1 | "https://www.hemzaden.nl/connect/db"
|
REMOTE_WEBSITE_STATS_1 | "" |
REMOTE_WEBSITE_MAIL_1 | "" |
REMOTE_WEBSITE_DB 1 | "" |