Filter parameter

hi all, i've a RelationManager: UsersRelationManager and in $table object i've this filter:
public function table(Table $table): Table
{
return $table
->->filters([
UserCastingStatusFilter::make('status_user_id'),
], layout: FiltersLayout::AboveContentCollapsible)

...
public function table(Table $table): Table
{
return $table
->->filters([
UserCastingStatusFilter::make('status_user_id'),
], layout: FiltersLayout::AboveContentCollapsible)

...
The relations from Users and Casting are this:
# User.php

public function castings(): BelongsToMany
{
return $this->belongsToMany(Casting::class)->withPivot('status_user_id', 'answer_user')->withTimestamps();
}
# User.php

public function castings(): BelongsToMany
{
return $this->belongsToMany(Casting::class)->withPivot('status_user_id', 'answer_user')->withTimestamps();
}
# Casting.php

public function users(): BelongsToMany
{
return $this->belongsToMany(User::class)->withTimestamps()->withPivot(['status_user_id', 'answer_user']);
}
# Casting.php

public function users(): BelongsToMany
{
return $this->belongsToMany(User::class)->withTimestamps()->withPivot(['status_user_id', 'answer_user']);
}
How can i call UserCastingStatusFilter with casting_id considering that i've the relationManager inside Casting page view?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server