laravel routes add code example
Example 1: artisan in route in laravel
Artisan::call('cache:clear')
Example 2: laravel route
# Using Request
Route::get('user/{name}', function (Request $request) {
return $request->route('name');
});
Artisan::call('cache:clear')
# Using Request
Route::get('user/{name}', function (Request $request) {
return $request->route('name');
});