Is there any way to run the composer install command on a route or controller ? Because i'm doing function install package when click button. Thanks so much
Asked
Active
Viewed 1,229 times
0
-
In general, this introduces significant security challenges. – ceejayoz Oct 04 '19 at 02:54
-
Yea It's possible. You can find your solution here https://fivea.pk/run-composer-commands-programmatically/ – Adnan Rasheed Dec 12 '22 at 11:45
1 Answers
0
Follow this then you can setup your commands https://laravel.com/docs/5.8/artisan#programmatically-executing-commands
Im sorry for misunderstand, you can call your command by execute it from .sh file. Follow these step: Run .sh file using exec Laravel PHP

HieuMinh
- 41
- 5