Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

masandikdev's avatar

App Debug Not Working in Laravel 5.8

Hi i just try install laravel on new development, last version i use is 5.6 and working great.

now im working in new project, but why app debug not working on Laravel 5.8 using PHP7.3 at debian server.

my .env is look like this:

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:w/xxxxxxxx
APP_DEBUG=true
APP_URL=http://localhost

already do

php artisan optimize:clear
php artisan config:clear

just test with simple code

    public function test()
    {
        return $test;
    }
    

its not showing error message from App Debug but, 'HTTP ERROR 500' code.

any suggestion to solve this. thanks

0 likes
14 replies
masandikdev's avatar

last time i ask question like 3 years, now laracast has many user but not helping one like years ago, when active user like jefrey bashy pmall and other. i just check docs and stackoverflow but lacking find the answer, please anyone who have this experience.

masandikdev's avatar

i try edit .env to

LOG_CHANNEL=single

laravel.log is writeable and now i see the error message in this laravel.log file, but why its not showing up on browser.

xuma's avatar

Try to change config/app.php and update 'debug' => env('APP_DEBUG', false), to 'debug' => true, if it works it can be an error in your .env file. And also you can update 'env' => env('APP_ENV', 'production'), to 'env' =>'local',

masandikdev's avatar

@XUMA - already do that but the problem still occur. sometime i got partial message, about the error, and page got blanked because that partial render. i check everything like php config etc and still no luck.

because of this i should check on server manualy.

watch grep 2019-03-14 storage/logs/laravel-2019-03-14.log
davorminchorov's avatar

If you can't see the error page, that's probably because you have an issue somewhere in the code that is blocking the rendering of the error on the page.

Try running a command like php artisan or php artisan route:list and it will probably show you the error.

masandikdev's avatar

@RUFFLES - i can execute any php artisan command, its weird. i dont see this problem at Laravel 5.6 before.

munazzil's avatar

Have tried with

php artisan cache:clear
php artisan view:clear
 php artisan route:clear
munazzil's avatar

instead check with this.

   public function test()
{

$test = 'Something';
    return $test;
}
ettore's avatar

Did you update all the composer packages?

4akHopic's avatar

@MASANDIKDEV - identical problem if the problem is solved, please unsubscribe

it solved my problem:

For example, if you remove the vendor\laravel\framework\src\Illuminate\Foundation\Exception‌​s\views\404.blade‌​.ph‌​p file you'll get the exception and stack trace displayed by whoops. Provided that you don't have resources\views\errors\404.blade.php file too.

https://stackoverflow.com/questions/51045682/laravel-debug-screen-is-not-showing-after-upgraded-from-5-4-to-5-5

siangboon's avatar

did you restart the service after changed the .env?

jimbocity's avatar

Mine started doing the same thing today!! Laravel 8. All of a sudden debug isn't recognised. I tried all the replies above. the error persists.

jimbocity's avatar

Fixed it! If none of the offered solutions above work, try clearing all cache again and then try this:

php artisan optimize:clear

It worked for me when nothing else did.

Please or to participate in this conversation.