routes method in laravel code example
Example 1: artisan in route in laravel
Artisan::call('cache:clear')
Example 2: laravel route
Route::view('/welcome', 'welcome');
Route::view('/welcome', 'welcome', ['name' => 'Taylor']);
Artisan::call('cache:clear')
Route::view('/welcome', 'welcome');
Route::view('/welcome', 'welcome', ['name' => 'Taylor']);