Hi , I want to execute below command , when someone submit the post mean store function of postcontroller aws s3 sync --delete /var/www/html/public/images/article/ s3://theeventsimages/
If you want to run artisan command outside of the CLI? Just use the Artisan facade like below:
Artisan::call('command:name', ['--option' => 'foo']);
You can get more detail here
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community