'array', ]; protected function alts(): Attribute { return Attribute::make( set: fn ($value) => json_encode($value), ); } public function collection() { return $this->belongsTo(Collection::class); } public function getPath() { return Storage::disk($this->collection->disk)->path($this->server_path . $this->uuid . '.' . $this->collection->ext); } public function getModifiedPath() { return Storage::disk(app()->collection->disk)->path(app()->file->server_path . app()->file->uuid . '-modified.' . app()->collection->ext); } }