*/ use HasFactory; use HasNamiField; use Sluggable; /** * @var array */ public $fillable = ['is_age_group', 'is_filterable', 'slug', 'name', 'nami_id']; /** * @var bool */ public $timestamps = false; /** * @var array */ public $casts = [ 'is_age_group' => 'boolean', 'is_filterable' => 'boolean', ]; /** * @return array */ public function sluggable(): array { return [ 'slug' => [ 'source' => 'name', ], ]; } /** * @return BelongsToMany */ public function activities(): BelongsToMany { return $this->belongsToMany(Activity::class); } }