feat(attachments): add AttachmentType enum and update Attachment model to use it

This commit is contained in:
2026-06-25 14:44:44 -03:00
parent 9c5a29d933
commit 56b87f0c12
4 changed files with 81 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Domains\Attachable\Models;
use App\Domains\Attachable\Enums\AttachmentType;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
@@ -35,6 +36,7 @@ class Attachment extends Model
{
return [
'attachable_id' => 'integer',
'type' => AttachmentType::class,
'size' => 'integer',
];
}