php artisan command:name
/*
|====================================================
| How to run artisan commands witout terminal/ shell
|====================================================
*/
Route::get('/run', function () {
Artisan::call('storage:link');
});
class MyCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'my:command';
}
php artisan my:command