user() !== null; } public function rules(): array { return [ 'collection_id' => ['nullable', 'integer', 'exists:collections,id'], ]; } }