get route function laravel code example
Example 1: laravel get route
Route::get('/user', 'UserController@index');
Example 2: laravel route
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Route::get('/user', 'UserController@index');
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');