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

htyen1's avatar

laravel 5.3 php artisan optimze strange error

after i upgrade 5.3 my site won't work if i run php artisan optimze, which generates the bootstrap/cache/compiled.php. my site goes blank an no error message anywhere (apache log or laravel logs etc.)

however if i run php artisan clear-compile (which removes the compiled.php file), my site will work!

any ideas?

0 likes
1 reply
ujiriukiri's avatar

Try this: (stop your server first)

php artisan cache:clear composer dump-autoload php artisan serve

Please or to participate in this conversation.