F
Filament3mo ago
Justin

Livewire table / form with relation

I'm trying to make a create / edit form for SizeGroups which will also allow me to attach / create + attach / detach sizes (like in the last pic). I had it working fine enough in the picture without filament, but I recently heard about it and wanted to recreate most of my project with it. This is what I have now in editing form:
->actions([
Tables\Actions\EditAction::make()->form([
TextInput::make('name')
->required()
->maxLength(32),
]),
Tables\Actions\DeleteAction::make(),
Tables\Actions\RestoreAction::make(),
])
->actions([
Tables\Actions\EditAction::make()->form([
TextInput::make('name')
->required()
->maxLength(32),
]),
Tables\Actions\DeleteAction::make(),
Tables\Actions\RestoreAction::make(),
])
So basically I want to display the current sizes that are in the group and be able to attach / detach them from here And yes I'm aware it might be so much easier to use the admin panel, but I'm not allowed to use it during my exam at school, but we're allowed to create components we can use in our own existing views.
No description
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin