Команда Lare Artisan работает в Интернете
Route::get('your-link', function () {
\Artisan::call('cache:clear'); // command
dd("Done!!!");
});
Dev Arman
Route::get('your-link', function () {
\Artisan::call('cache:clear'); // command
dd("Done!!!");
});
class MyCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'my:command';
}
php artisan my:command