'integer', ]; 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); } }