Laravel artisan optimizes not creating bootstrap / compiled

I had a bootstrap/compiled.php file. Then I accidentally deleted it and because for some reason it was in .gitignore, I have no other copy. How do I get it back?

I tried running compose dump-autoload and php artisan optimize , none of them generated a file. Where is it from? How to do it?

+8
optimization php laravel laravel-4
source share
2 answers

Laravel 4.1+ no longer creates bootstrap/compiled.php in development blocks, only in 'production'. In fact, Laravel checks if the debugging mode is on , if it is, it will not generate compiled.php.

But you can:

 php artisan optimize --force 

To make it create.

+19
source share

Switch the debug mode to false in app / config / app.php and run the command again.

 'debug' => false, 
0
source share

All Articles