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