tidiani12
tidiani12
FFilament
Created by tidiani12 on 8/24/2023 in #❓┊help
select
ok thanks
9 replies
FFilament
Created by tidiani12 on 8/24/2023 in #❓┊help
select
panel
9 replies
FFilament
Created by tidiani12 on 8/24/2023 in #❓┊help
select
we have two model creation in the same form but in edition form the form is not fill for the second one
9 replies
FFilament
Created by tidiani12 on 8/18/2023 in #❓┊help
How to get record of select relationship automatically
I have this but much redundancy
TextInput::make('length')
->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->circular: true),
TextInput::make('width')
->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->circular: true),
TextInput::make('diametre')
->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->surface : true),
TextInput::make('depth')
->hidden(fn(\Filament\Forms\Get $get) => !$get('type_infrastructure_id') || !TypeInfrastructure::find($get('type_infrastructure_id'))->volume),
TextInput::make('level')
->hidden(fn(\Filament\Forms\Get $get) => !$get('type_infrastructure_id') || !TypeInfrastructure::find($get('type_infrastructure_id'))->volume)
->suffix('%')
->default(100),
TextInput::make('length')
->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->circular: true),
TextInput::make('width')
->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->circular: true),
TextInput::make('diametre')
->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->surface : true),
TextInput::make('depth')
->hidden(fn(\Filament\Forms\Get $get) => !$get('type_infrastructure_id') || !TypeInfrastructure::find($get('type_infrastructure_id'))->volume),
TextInput::make('level')
->hidden(fn(\Filament\Forms\Get $get) => !$get('type_infrastructure_id') || !TypeInfrastructure::find($get('type_infrastructure_id'))->volume)
->suffix('%')
->default(100),
7 replies
FFilament
Created by tidiani12 on 8/18/2023 in #❓┊help
How to get record of select relationship automatically
yes
7 replies
FFilament
Created by tidiani12 on 8/18/2023 in #❓┊help
How to get record of select relationship automatically
Get type_infrastructure name from his id
7 replies
FFilament
Created by tidiani12 on 4/25/2023 in #❓┊help
Property null after submit
I have $guarded = [] the radio input is not bind with any model it is only for showing select input or not
5 replies