Comando Artisan Larave ejecutado en la web
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