fix: change models namespace

This commit is contained in:
amir-ys
2024-11-07 16:41:50 +03:30
parent 865d565a91
commit acb9871379
71 changed files with 732 additions and 688 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Uploadable extends Model
{
protected $fillable = [
'uploadable_id', 'uploadable_type', 'gallery_id', 'image_role', 'batch_id'
];
public $timestamps = false;
public function gallery(): BelongsTo
{
return $this->belongsTo(Gallery::class);
}
}