<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TicketType extends Model
{
    protected $fillable = ['name','description','icon','active'];
    protected function casts(): array { return ['active' => 'boolean']; }
    public function scopeActive($q) { return $q->where('active', true); }
}
