Daniel Veselinov
Daniel Veselinov
FFilament
Created by Daniel Veselinov on 3/19/2024 in #❓┊help
Fileupload Component Multiple Files froze buttons on the modal
I found out that if I move the FileUpload before the TextInput it works,
public function form(Form $form): Form
{
return $form
->schema([
FileUpload::make('files')
->multiple()
->image()
->required()
->acceptedFileTypes(['image/*'])
->imageCropAspectRatio('1:1')
->directory('groups/' . $this->group->id . '/gallery'),
TextInput::make('title')
->required()
->rules(['required', 'string', 'min:1', 'max:255']),
])
->statePath('state')
->model(Gallery::class);
}
public function form(Form $form): Form
{
return $form
->schema([
FileUpload::make('files')
->multiple()
->image()
->required()
->acceptedFileTypes(['image/*'])
->imageCropAspectRatio('1:1')
->directory('groups/' . $this->group->id . '/gallery'),
TextInput::make('title')
->required()
->rules(['required', 'string', 'min:1', 'max:255']),
])
->statePath('state')
->model(Gallery::class);
}
3 replies
FFilament
Created by Daniel Veselinov on 3/19/2024 in #❓┊help
Fileupload Component Multiple Files froze buttons on the modal
I've added in my Gallery modal $casts = ['files' => 'array'] , but didn't change anything.
3 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
I can share the files if you guys want to check?
15 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
Maybe my approach is/was different or wrong, but at the end of the day I've got it working 😅 . If I find any other solution related to this I will update my comment.
15 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
I found a solution.
$this->interests = $this->user->interests->pluck('id')->toArray();
$this->interests = $this->user->interests->pluck('id')->toArray();
Thank you Dennis for point out the mount method.
15 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
No description
15 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
I've also tried to use CheckBoxList it has similar behavior, it list all interests, and none are checked, then when I check an item every available checkbox is checked... Not exactly sure what I'm doing wrong here.
15 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
I've changed it, still the select input didnt change its behavior
15 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
Mhm, can you give me an example if that's not a problem. I'll try just now to do the change
15 replies
FFilament
Created by Daniel Veselinov on 2/26/2024 in #❓┊help
Adding a Filament form (select component) to a Livewire(v3.x) component
I've tried to use $this-interests = $this->user->interest; but it doesn't change anything, just when I click save it doesn't remove the records from the db. But when saving and refreshing the page select input resets.
15 replies