What are the Differences Between "php artisan dump-autoload" and "composer dump-autoload"?
I am pretty new to Laravel 4 and Composer. While I do Laravel 4 tutorials, I couldn't understand the difference between those two commands; php artisan dump-autoload
and composer dump-autoload
What's the difference between them?
Laravel's
Autoload
is a bit different:
-
It will in fact use
Composer
for somestuff
-
It will call
Composer
with the optimizeflag
-
It will '
recompile
' loads of files creating the hugebootstrap/compiled.php
-
And also will find all of your Workbench packages and
composer dump-autoload
them, one by one.
php artisan dump-autoload
was deprecated on Laravel 5, so you need to use composer dump-autoload