|string> */ public function rules(): array { return [ 'title' => ['required', 'string', 'max:255'], 'client' => ['required', 'string', 'max:255'], 'year' => ['required', 'integer', 'min:1985', 'max:'.(now()->year + 1)], 'sector' => ['required', Rule::enum(ProjectSector::class)], 'program' => ['nullable', Rule::enum(ProjectProgram::class)], 'scope' => ['nullable', 'string', 'max:255'], ]; } }