laravel call api route from controller with name code example
Example: laravel route
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');