user() !== null || auth()->user() !== null; } public function rules(): array { return [ 'school_year' => ['nullable', 'string', 'max:9'], 'semester' => ['nullable', 'string', 'max:255'], ]; } }