0

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

Thomas
  • 1
  • 1

1 Answers1

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