Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel artisan optimize not creating bootstrap/compiled

I used to have a bootstrap/compiled.php file. Then I accidentally deleted it, and because for some reason it was in .gitignore, I don't have another copy of it. How do I get it back?

I tried running compose dump-autoload and php artisan optimize, neither of these generated the file. Where does it come from? How do I produce it?

like image 700
Benubird Avatar asked Apr 11 '14 16:04

Benubird


1 Answers

Laravel 4.1+ does not create bootstrap/compiled.php on development boxes anymore, only in 'production'. Actually Laravel checks if debug mode is on if it is, it will not generate the compiled.php.

But you can:

php artisan optimize --force

To force its creation.

like image 168
Antonio Carlos Ribeiro Avatar answered Oct 22 '22 20:10

Antonio Carlos Ribeiro