hit the route from using laravel command code example
Example 1: laravel get route
Route::get('/user', 'UserController@index');
Example 2: artisan in route in laravel
Artisan::call('cache:clear')
Route::get('/user', 'UserController@index');
Artisan::call('cache:clear')