This commit is contained in:
2024-06-01 03:10:30 +02:00
parent 1d41dea9fa
commit 26551964b1
25 changed files with 1808 additions and 341 deletions

View File

@@ -11,6 +11,22 @@ class Image extends Model implements HasThumbnail
{
use HasFactory;
/**
* The model's default values for attributes.
*
* @var array
*/
protected $attributes = [
'isCover' => false,
];
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['album_id'];
public function album(): BelongsTo
{
return $this->belongsTo(Album::class);