1
  1. already changed APP_DEBUG in .env to true.
  2. when you switch to an address that doesn't exists it would shows the typical laravel error.
  3. when you make mistake deliberately like echo $var_that_not_exists it would simply give you an blank page with a 500 internal error in browser console.

why? btw I'm using laravel 5.

Kevin
  • 795
  • 2
  • 9
  • 21

2 Answers2

2

If you're using Homestead, it uses HHVM by default. Unfortunately, PHP fatal errors in HHVM go to /var/log/hhvm/error.log rather than to the browser.

HHVM+Hacklang: errors/warnings output into browser

Community
  • 1
  • 1
ceejayoz
  • 176,543
  • 40
  • 303
  • 368
1

Theres a difference in errors here.

Going to a 404 page throws an exception which is then handled by your apps error handler, found in app/Exceptions/Handler.php.

Echoing an undefined variable is a fatal PHP error (depending on your config), which assuming your using PHP-FPM is going to display a 500 error from your webserver.

Wader
  • 9,427
  • 1
  • 34
  • 38