simple route in laravel code example
Example 1: artisan in route in laravel
Artisan::call('cache:clear')
Example 2: laravel route
Route::get('user/{id}', function ($id) {
return 'User '.$id;
});
Artisan::call('cache:clear')
Route::get('user/{id}', function ($id) {
return 'User '.$id;
});