Blackpig
Custom layout - setting data from $get throws fatal Typed property initialization error
I'm trying to use an existing method from the
ViewComponent
- if I change my method from viewData
to layoutData
and getLayoutData
it's all good. Thanks for listening 🦆4 replies
Spatie Translatable Plugin - Repeater Fields Supported
Sorry, been busy with work. If I get time I'll spin up a quick project later. IIRC - I just added the repeater field to the translatable array on the model and added the relevant traits/concerns. The main difference from a normal text input is when switching locale, the text input would be on the page ready for the new language input. But with a repeater - if you have already added 3 in the 'EN' locale and then switch to 'FR' - you would need to add the 3 repeaters again - it doesn't auto-magically create 3 'empty' repeaters awaiting translated input. I also wasn't using the repeater for a relationship - it was data stored in a JSON field on the model.
11 replies
How to place a navigation element without a group between groups or after?
Sometimes we have to live within the limitations of the tools we use . Filament is incredibly flexible and you have been given multiple potential solutions - if none of them are an exact fit for your needs then you may need to adapt your expectations and requirements
54 replies
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'shipment_items.organization_id' in 'where cl
32 replies
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'shipment_items.organization_id' in 'where cl
I don't know the VSCode extension you're using but can you access mysql from your command line? If so
DESCRIBE <your_table>
will show your table definition32 replies
How to place a navigation element without a group between groups or after?
Is this what you want?https://filamentphp.com/docs/3.x/panels/navigation#ordering-navigation-groups
54 replies
Text overflow ellipsis
https://filamentphp.com/docs/3.x/tables/columns/text#limiting-text-length or maybe this https://filamentphp.com/docs/3.x/tables/columns/text#customizing-the-text-size
11 replies
Guava Tutorials Plugin
https://discord.com/channels/883083792112300104/1167940030111698954 but as the docs say, this is in alpha release so use at your own risk
15 replies
How to save the value of hidden toggle?
try here https://filamentphp.com/docs/3.x/panels/resources/editing-records#customizing-data-before-saving
7 replies
Update hidden fields (Relationship)
I had something similar when I wanted to manipulate the value of hidden field ended removing the hidden field and adding logic to https://filamentphp.com/docs/3.x/panels/resources/editing-records#customizing-data-before-saving
12 replies
How to make multilingual?
There's the Filament package for Spatie Translatable https://filamentphp.com/plugins/filament-spatie-translatable
14 replies