5

I took over a Laravel 5.5 project, and there is something going on that I have never encountered - the content on the error reporting screen is all replaced by stars.

enter image description here

I don't know what the previous devs did to accomplish this, but obviously I want to be able to see this info. The .env content seems fairly obvious:

APP_ENV=local
APP_HOST=http://localhost
APP_DEBUG=true
APP_TESTMODE=false
APP_CACHE_ENABLED=true

Other than that, there are API keys for Stripe, AWS etc, but nothing that would presume to block me from viewing the info on the error screen.

Why is this problem occurring and how can I fix it?

sveti petar
  • 3,637
  • 13
  • 67
  • 144

1 Answers1

3

You probably have the debug_blacklist set, as seen in the documentation

Simply remove the debug_blacklist array from your config/app.php configuration file and the values will reveal.

Christophe Hubert
  • 2,833
  • 1
  • 12
  • 25
  • Yep, this is it. They have: `'debug_blacklist' => [ '_SERVER' => array_keys($_SERVER), '_ENV' => array_keys($_ENV), ],` so it's all hidden for that reason. Why someone would hide all this info is a different question :) – sveti petar May 19 '20 at 07:38
  • If you want other people to see your work on a live server with debug on - it is good to hide sensitive data - especially Stripe Key – Christophe Hubert May 19 '20 at 07:41
  • I suppose, but it seems kinda indiscriminate to just hide everything else in the process :) – sveti petar May 19 '20 at 07:42
  • 1
    Agreed, this seems like overkill, but I guess it made sense for the previous guys – Christophe Hubert May 19 '20 at 07:44