user() !== null; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'provider_repository_id' => ['required', 'string', 'max:255'], 'user_git_connection_id' => ['required', 'integer', 'exists:user_git_connections,id'], ]; } }