Banner.php 504 Bytes
<?php

namespace App\Models;

use App\Enums\BannerStatusEnum;
use App\Support\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Banner extends Model
{
    use SoftDeletes;

    protected $table = 'banners';

    protected $guarded = [];

    protected $hidden = ['deleted_at'];

    protected $casts = [
        'type'       => 'integer',
        'permission' => 'array',
        'role'       => 'array',
        'status'     => BannerStatusEnum::class,
        'content'    => 'json'
    ];
}