dump-autoload command from php
问题 I am building a web application where the user dynamically can upload Controllers php files from the web browser. There is a problem in all of this. Since every class should be compiled in order be used inside of laravel, the commmand composer dump-autoload must be executed. But I do not want to do this manually from the terminal. Inside of a "register class" I have called explicitly some commands that have not worked for me, for example: Artisan::call('dump-autoload'); exec("/path/to/app