Thursday, 25 November 2021

How do I disable error reporting in Laravel

To disable error reporting in larval production we simply need to set different environment variables.


In your .env file

APP_DEBUG=false

APP_ENV=production


After updating or adding app_debug to false. We need to clear the cache using the artisan command.

php artisan config:clear





No comments:

Post a Comment

Laravel csrf token mismatch for ajax post request

Error "CSRF Token Mismatch" commonly occurs if tokens do not match in both sessions and sent , and received requests.CSRF token he...