check(); } /** * @return array */ public function getAttachmentData(): array { return [ 'title' => $this->string('title'), 'description' => $this->string('description'), 'notes' => $this->string('notes'), ]; } /** * @return array */ public function rules() { // fixed return [ 'title' => 'between:1,255|nullable', 'description' => 'between:1,65536|nullable', 'notes' => 'between:1,65536|nullable', ]; } }