Jens
Jens
FFilament
Created by Jens on 10/24/2024 in #❓┊help
Close modal from a "extraModalFooterActions"
Thanks! This worked 👍
7 replies
FFilament
Created by Jens on 4/26/2024 in #❓┊help
Dynamic columns in exporter
Basically I have a column in the database which contains dynamic json-data, I need to be able to access this data and add columns to the export based on it.
3 replies
FFilament
Created by Jens on 4/26/2024 in #❓┊help
Dynamic columns in exporter
Can't seem to find a solution to this.. Any ideas? Seems like the option is to build my own export otherwise
3 replies
FFilament
Created by Luukd_2000 on 1/16/2024 in #❓┊help
Select form component with relation loads items from other tenants
Basically this: Change modifyQueryUsing according to your needs
Select::make('relation_id')->label('Kies een relatie')
->searchable()
->preload()
->required()
->relationship(
name: 'relation',
titleAttribute: 'contact_name',
modifyQueryUsing: fn (Builder $query) => $query->where('tenant_id', auth()->user()->tenant->id),
)
->reactive()
->createOptionForm([
Forms\Components\TextInput::make('contact_name')->label('Contact persoon')->required(),
Forms\Components\Hidden::make('organisation_id')->default(Filament::getTenant()->id),
Forms\Components\TextInput::make('email')->label('Email')->email(),
Forms\Components\TextInput::make('company_name')->label('Bedrijfsnaam'),
Forms\Components\TextInput::make('phone')->label('Telefoon'),
Forms\Components\TextInput::make('vat_number')->label('Belastingnummer'),
Forms\Components\TextInput::make('kvk_number')->label('KVK nummer'),
]),
Select::make('relation_id')->label('Kies een relatie')
->searchable()
->preload()
->required()
->relationship(
name: 'relation',
titleAttribute: 'contact_name',
modifyQueryUsing: fn (Builder $query) => $query->where('tenant_id', auth()->user()->tenant->id),
)
->reactive()
->createOptionForm([
Forms\Components\TextInput::make('contact_name')->label('Contact persoon')->required(),
Forms\Components\Hidden::make('organisation_id')->default(Filament::getTenant()->id),
Forms\Components\TextInput::make('email')->label('Email')->email(),
Forms\Components\TextInput::make('company_name')->label('Bedrijfsnaam'),
Forms\Components\TextInput::make('phone')->label('Telefoon'),
Forms\Components\TextInput::make('vat_number')->label('Belastingnummer'),
Forms\Components\TextInput::make('kvk_number')->label('KVK nummer'),
]),
This or you could also implement a global scope for your Relation model: https://laravel.com/docs/10.x/eloquent#global-scopes
3 replies
FFilament
Created by Wannes on 1/15/2024 in #❓┊help
[3.2.0] Export to CSV relationships
I have this problem as well, relationship columns with dot notation just gets ignored.
30 replies