dynamicly add and equip items to a character

First Thanks for this awesome project! I'm new to coding and I love how Filament (and especially @Prodex) enables me to learn to code. My setup: ddev/docker (filament 3.2, laravel 12) What I am trying to do: I'm building a character creater for a P&P game. I want to dynamically add and equip items to a char. equipment is a model. If Items are added to the Character via multiselect, new Fields shall appear underneath. In these new fields these items should be editable and have a toggle for "equipped". What I did: I'm playing around with repeater and conditions. But perhaps there are better ways. Due to the fact, that I'm a newbie, I hope for Ideas and hits how to get there. Code: I tried something like: php Section::make('equip_items') ->description('Wähle die aktuelle Ausrütung') ->schema([ Repeater::make('equipable_items') ->relationship('equipment') ->live() ->schema([ Select::make('rüstung_equiped') ->visible(fn (callable $get) => in_array($get('equipment'))), ]), ]),
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?