route from a laravel controller code example
Example 1: laravel route
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Example 2: Route::resource
Route::resource('photos', PhotoController::class);
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Route::resource('photos', PhotoController::class);