How to enable error reporting in laravel 4.2 for debugging

I just installed the new laravel 4.2 using composer . I am making a syntax error knowingly on my router.php to see if the corresponding application is selected by the application on my browser screen, but instead it turned out

Oops, it looks like something went wrong.

.

I checked the app/config.ph p app/config.ph and changed "debug" = false to "debug" = true and this did not work for me. However, I get the same message.

Does anyone know how to configure laravel 4 to display an error message on my screen?

+6
source share
3 answers

You need to modify the file app/config/local/app.php and set 'debug' => true,

+13
source

Are you sure you configured the debug state?

because app/config.php not suitable for laravel, but app/config/app.php

+3
source

If you are in windows, these additional steps may help.

  • As other users pointed out, make sure on app / config / app.php

    'debug' => true,

    1. Change to the directory where the laravel folder is located in powershell / cygwin and starts:

php artisan serve

and then check the site on localhost: 8000 to access the site. You can put a dummy URL to check if it shows an error.

+2
source

Source: https://habr.com/ru/post/972157/


All Articles