'integer', 'is_filterable' => 'boolean', ]; public function sluggable(): array { return [ 'slug' => [ 'source' => 'name', ], ]; } /** * @param Builder $query * * @return Builder */ public function scopeWithFilter(Builder $query, ActivityFilterScope $filter): Builder { return $filter->apply($query); } /** * @return BelongsToMany */ public function subactivities(): BelongsToMany { return $this->belongsToMany(Subactivity::class); } }