user() !== null; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'field_type' => ['required', 'string', Rule::in(TicketFieldDefinition::FIELD_TYPES)], 'label' => ['required', 'string', 'max:255'], 'position' => ['nullable', 'integer', 'min:1'], ]; } }