W
W
WebDev2016-04-18 17:11:02
Laravel
WebDev, 2016-04-18 17:11:02

How to disable errors in laravel 5?

In .env
APP_ENV=production
APP_DEBUG=false
In vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php error_reporting(0)
And the site crashes on Undefined index and any notice.
When doing this, I see a white screen with woops, something went wrong.
How to disable notice errors?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Filippov, 2016-04-18
@andrysha-dev

Why turn them off? They need to be corrected.

E
eskrano, 2016-04-18
@eskrano

easier to fix and save yourself a headache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question