'array', ]; } protected static function booted(): void { static::deleting(function (UploadImages $oImage) { if ($oImage->sFileName && Storage::disk('upload_images')->exists($oImage->sFileName)) { Storage::disk('upload_images')->delete($oImage->sFileName); } }); } public function oImageable(): MorphTo { return $this->morphTo('oImageable'); } protected function sPath(): Attribute { return Attribute::make( get: fn (string $value) => Storage::disk('upload_images')->url($value), ); } }