'array', ]; protected function uuid(): Attribute { return Attribute::make( set: fn ($value) => Str::uuid(), ); } protected function alts(): Attribute { return Attribute::make( set: fn ($value) => json_encode($value), ); } public function rules(): array { return [ "image" => [ "mimes:" . app()->collection->getExts(), "mimetypes:" . app()->collection->getMimeTypes(), "dimensions:min_width=" . app()->collection->min_width . ",min_height=" . app()->collection->min_height . ',max_width=' . app()->collection->max_width . ',max_height='. app()->collection->max_height, "max:" . app()->collection->max_size, "min:" . app()->collection->min_size, ], ]; } }