Frank
Frank
FFilament
Created by Frank on 12/18/2023 in #❓┊help
Help With Managing Users with Multi-tenancy
Anyone able to take a look at this post and help me out ? https://github.com/filamentphp/filament/discussions/10359
2 replies
FFilament
Created by Frank on 11/29/2023 in #❓┊help
Reuse a Form Resource in createOptionForm
Hi, sorry if this is a bit obvious. When creating a select from relationship and allowing the option to create an option. How can i reuse an exsiting form resource ?
Forms\Components\Select::make('artwork_id')
->relationship(
name: 'artwork',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => $query->where('organisation_id', $organisationId),
)
->searchable(['name', 'original_name'])
->createOptionForm(
// ArtworkResource::form()
),
Forms\Components\Select::make('artwork_id')
->relationship(
name: 'artwork',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => $query->where('organisation_id', $organisationId),
)
->searchable(['name', 'original_name'])
->createOptionForm(
// ArtworkResource::form()
),
3 replies