feat: implement Attachment domain for file storage and integrate into Tenant service for logo management
This commit is contained in:
@@ -6,7 +6,6 @@ use App\Domains\Attachable\Enums\AttachmentType;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
#[Fillable([
|
||||
@@ -41,14 +40,6 @@ class Attachment extends Model
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return HasMany<AttachableAttachment, $this>
|
||||
*/
|
||||
public function attachables(): HasMany
|
||||
{
|
||||
return $this->hasMany(AttachableAttachment::class, 'attachment_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the pre-signed temporary S3 URL for this attachment.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user