vblinden
vblinden
FFilament
Created by vblinden on 3/21/2024 in #❓┊help
Translatable issue, adding random UUIDs (?)
It only happens when I editing the second language, the first edit of the first language is correct.
3 replies
FFilament
Created by Hdev on 2/16/2024 in #❓┊help
Image not uploading after deployment
in /storage/app ?
23 replies
FFilament
Created by Hdev on 2/16/2024 in #❓┊help
Image not uploading after deployment
Is the image on the server?
23 replies
FFilament
Created by Hdev on 2/16/2024 in #❓┊help
Image not uploading after deployment
Are you getting errors during upload?
23 replies
FFilament
Created by vblinden on 1/29/2024 in #❓┊help
Set default value for Builder component
So I load the code from a class which has the form definition as per my first comment in this thread
7 replies
FFilament
Created by vblinden on 1/29/2024 in #❓┊help
Set default value for Builder component
Form builder, but I'm using a
$component
->getContainer()
->getComponent('dynamicForm')
->getChildComponentContainer()
->fill();
$component
->getContainer()
->getComponent('dynamicForm')
->getChildComponentContainer()
->fill();
and
Grid::make('input')
->columns(1)
->schema(function (Get $get) use ($rules): array {
if (!$get('class') || ($get('class') && !$rules->has($get('class')))) {
return [];
}

return $rules[$get('class')]['instance']->form();
})
->key('dynamicForm'),
Grid::make('input')
->columns(1)
->schema(function (Get $get) use ($rules): array {
if (!$get('class') || ($get('class') && !$rules->has($get('class')))) {
return [];
}

return $rules[$get('class')]['instance']->form();
})
->key('dynamicForm'),
7 replies
FFilament
Created by vblinden on 1/29/2024 in #❓┊help
Set default value for Builder component
I'm checking on the create page indeed
7 replies
FFilament
Created by vblinden on 1/29/2024 in #❓┊help
Set default value for Builder component
An array of arrays also doesn't seem to work:
Builder::make('form')
->blocks([
Block::make('values')->schema([
TextInput::make('percent')
->numeric()
->required()
->placeholder('20'),
])
])
->default([[
'type' => 'values',
'data' => [
'percent' => 1,
],
]])
->maxItems(1)
->blockNumbers(false)
Builder::make('form')
->blocks([
Block::make('values')->schema([
TextInput::make('percent')
->numeric()
->required()
->placeholder('20'),
])
])
->default([[
'type' => 'values',
'data' => [
'percent' => 1,
],
]])
->maxItems(1)
->blockNumbers(false)
7 replies