lkucharski
lkucharski
FFilament
Created by lkucharski on 1/8/2024 in #❓┊help
createAction inside form section
Colleagues, how to connect the createAction with a form, I really need to be able to add an item to the relationship based on a checkboxList, and under it a button add an item using createAction and editAction, but these are incompatible types with the form.
15 replies
FFilament
Created by lkucharski on 12/15/2023 in #❓┊help
Sorting Forms/Components/Select by Pivot Table Field
Maybe someone would like to help me.
1️⃣ I have a Person model that has a relationship to the Operator model
public function operator()
{
return $this->hasOne(Operator::class);
}
public function operator()
{
return $this->hasOne(Operator::class);
}
2️⃣ The Operator model has a relationship to the Roles model
public function roles()
{
return $this->belongsToMany(Roles::class, 'role_operator')->withOrganisationOrShared();
}
public function roles()
{
return $this->belongsToMany(Roles::class, 'role_operator')->withOrganisationOrShared();
}
3️⃣ I have a Select component in Form and it works fine with these relationship operator.roles.
Components\Group::make()
->relationship('operator')
->schema([
Components\Select::make('roles')
->relationship(name: 'roles', titleAttribute: 'label')
->live()
->label('Przypisane role')
->multiple()
->preload()
])
Components\Group::make()
->relationship('operator')
->schema([
Components\Select::make('roles')
->relationship(name: 'roles', titleAttribute: 'label')
->live()
->label('Przypisane role')
->multiple()
->preload()
])
How could he sort the returns Roles in Select by Pivot Table ID?
9 replies
FFilament
Created by lkucharski on 12/5/2023 in #❓┊help
Reset filters after change tab
I have a view containing table and tabs. This works fine, but I don't know how to make a clicked tab reset the filters and search.
5 replies
FFilament
Created by lkucharski on 12/4/2023 in #❓┊help
Tabs and tables together. Request for help.
Please help. I have an application that does not use Panel Builder. Uses tables and forms as livewire components. Is there any way for me to add infolist tabs above the table? This topic is very urgent for me. Please advise.
56 replies