A
A
Alexander2016-12-13 11:50:10
Nginx
Alexander, 2016-12-13 11:50:10

Debug not working in project?

For example, if you write public/index.php here at the beginning of phpinfo() :

phpinfo();

/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <taylor@laravel.com>
 */

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/

require __DIR__.'/../bootstrap/autoload.php';
.....

Then it will display information about php on the server. Then I remove phpinfo and the error information is written in the logs and phpinfo is displayed on the page, although I removed it.
Debug I have config/app.php enabled :
...
'debug' => env('APP_DEBUG', true),
...

It's in production.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Golovko, 2016-12-13
@siptik

'debug' => env('APP_DEBUG', true), - correct the .env file, it might be false. For from it is taken in the first place. Set all the write permissions that the system needs. Maybe look at the server settings that are related to display, error suppression.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question