*/ use HasFactory; use HasNamiField; use Sluggable; public $fillable = ['is_try', 'has_efz', 'is_member', 'name', 'is_filterable', 'nami_id']; public $timestamps = false; public $casts = [ 'nami_id' => 'integer', 'is_filterable' => 'boolean', ]; public function sluggable(): array { return [ 'slug' => [ 'source' => 'name', ], ]; } /** * @return BelongsToMany */ public function subactivities(): BelongsToMany { return $this->belongsToMany(Subactivity::class); } }