api.php laravel 8 code example Example: laravel route Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');