*/ protected $fillable = [ 'name', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ ]; /** * Get the items in this category * * @return HasMany */ public function items(): HasMany { return $this->hasMany(MallItem::class, 'category_id', 'id'); } }