user()->hasPermission('update-users'); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { $user = $this->route('user'); return $this->baseRules($user->id, false); } }