id; } // try to find given user $user = User::findOrFail($id); $roles = UserRoles::getWithTranslations(); $states = UserStates::getWithTranslations(); return view('admin.userManagement.detail', [ 'user' => $user, 'states' => $states, 'roles' => $roles ]); } }