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
, which I highly do not recommend, you better run composer dump-autoload
on its own.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…