<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Banner extends Model {
    protected $fillable = ['title','image','link','type','sort_order','is_active'];
    protected $casts    = ['is_active'=>'boolean'];
    public function scopeActive($q) { return $q->where('is_active',true); }
}
