Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.2 app - Debug is false but I'm still seeing PDO Exceptions

I have a laravel 5.2 application which is displaying the typical 'Whoops, something went wrong' PDO error when it can't connect to the database (which includes the IP of the DB and the username/password).

In my app.php file I've got:

'debug' => false,

I've also tried clearing my cache on the server to see if it was still stuck on debugging, but that didn't do anything.

Any help with how to stop this would be greatly appreciated.

like image 233
pyy Avatar asked Dec 08 '22 21:12

pyy


1 Answers

I think I've finally got an answer...

Turns out I cached it using

php artisan config:cache

so I cleared it and now it works. I feel like a bit of an idiot after that..

like image 150
pyy Avatar answered Dec 11 '22 08:12

pyy