where('user_id', $this->user()->id); } /** * Rule asserting the value references an account of the given type owned by the authenticated user. */ protected function userOwnedAccountOfType(AccountType $type): Exists { return $this->userOwned('accounts')->where('type', $type->value); } }