Custom Editor Form

I have created a custom form, by custom I mean it load dynamically base on a select and the select is base on the X array... So. you have an array with ["name"=> [ "label"=>"Name module", "form"=>[ // Here you will have your normal filament input/textarea/selects.. ], "config"=>[ // also you will have filament inputs based on what you might need ] ] Then from your normal Model resource you can just call it, anywhere you need it... Forms\Components\Group::make() ->schema(function (callable $get) { $type = $get('type'); if (!$type) return []; return HelperEditor::getModuleFormSchema($type); }) ->columnSpan(3), The idea behind this is so that every "page" or public content can have whatever you like, think of it as a product catalog, a product have slider, or some fancy text arrangement, others may not and just text/html, so when creating a new record/product, it will ask first what modules would you like to use, and you have select with... slider, html, fancy zig-zag styles...etc, and you add many as needed, think of it like a drag and drop but a bit less visual, so far it works sort of ok, yesterday I started to implement a media file manager, which I'm using this unisharp/laravel-filemanager, the basic installation and integration to Filament was easy, but now I want it to integrate that into a custom-field, also I have done it 80% way there so far, while working on that, I notice the I'm getting an error from Livewire Livewire Entangle Error: Livewire property ['mountedTableActionsData.0.modules.4d7fcaa7-6b3c-4983-8112-749fedb49931.config.loop'] cannot be found on component: ['app.filament.resources.category-resource.relation-managers.translations-relation-manager'], I know what it is, just don't know how to fix it...
No description
1 Reply
Tanker
TankerOP2w ago
After 2 days + an AI, trying to get it working, I finally got it, Filament v3, Laravel 12, laravel-filemanager, custom media manager input with related path.... it has been fun!

Did you find this page helpful?