*/ protected $fillable = ['name', 'slug', 'color', 'sort_order', 'is_closed']; /** @var array */ protected $casts = ['is_closed' => 'boolean', 'sort_order' => 'integer']; /** @return HasMany */ public function tickets(): HasMany { return $this->hasMany(Ticket::class, 'status_id'); } }