Run composer dump-autoload from controller in laravel 5
问题 I want to run composer dump-autoload without shell command in controller. In laravel 4 I use Artisan::call('dump-autoload'); but in laravel 5 this command not work. 回答1: Artisan is not wrapper for composer . Composer itself brings the composer command to control itself. Currently there is no way to call composer commands in a proper way from Artisan - not even with creating your own Artisan command with php artisan make:console CommandName . Unless you don't want to use PHPs exec or system ,