|string> */ public function rules(): array { return [ 'search' => ['nullable', 'string', 'max:255'], 'category_id' => ['nullable', 'integer', 'exists:institution_categories,id'], 'trashed' => ['nullable', Rule::in(['with', 'only'])], 'per_page' => ['nullable', 'integer', 'min:1', 'max:100'], ]; } }