Question : larave artisan command run in web
Answered by : mohammad-arman-ali
Route::get('your-link', function () { \Artisan::call('cache:clear'); // command dd("Done!!!");
});
Source : | Last Update : Fri, 22 Apr 22
Question : laravel run command
Answered by : hassan-elshazly-eida
class MyCommand extends Command
{ /** * The name and signature of the console command. * * @var string */ protected $signature = 'my:command';
}
php artisan my:command
Source : | Last Update : Mon, 28 Mar 22