Laravel 6 routes code example
Example 1: artisan in route in laravel
Artisan::call('cache:clear')
Example 2: laravel route
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Artisan::call('cache:clear')
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');