route('account'); return $account instanceof Account && $this->user()?->id === $account->user_id; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'hidden' => ['required', 'boolean'], ]; } }