hxn
repeater simple vs schema
Hello,
In my model, I have a field named attachments, which is cast as an array. The field can contain multiple path and looks like this:
When I use a simple repeater with a ViewField, the $getState() function returns the string path of my images as expected:
However, when I switch from simple to schema, the $getState() function always returns null:
Here's the custom view:
By switching to schema, I'm encountering an issue where the state is not being retrieved correctly. Any guidance on resolving this would be greatly appreciated.
4 replies
Multi dimensional KeyValue
Hello,
Is there an easy way to deal with multi dimensional array with the keyvalue component?
For now i got a [object Object] in the value. I can't even save the resource because the keyvalue awaiting a ?string
Maybe it is possible to ask filament to ignore the values if its an array?
Exemple of my data (casted as an array)
"{"name": "CompanyName", "address": {"country": "USA", "postcode": "44"}, "status": "ok"}"
7 replies
conditional table column
Hello i'm trying to make a conditional column..
I've follow this online tutorial to make a settings page https://blog.moonguard.dev/setting-page-with-filament
I've made some change to accept media (I'm using curator plugin) and what i want to achieve is a conditional column
If the type of my setting is media i want a CuratorColumn. For everything else a TextColumn but i don't know how to make this
10 replies
policies not fully working
Hello,
I have a policy with everything on false (create, update, delete, restore, forceDelete)
Create button disappear as expected
Navigate to resource/1/edit throw forbidden as expected.
But i still can bulk delete when selecting the row on the table
3 replies
Custom page with filament blade component
Hello,
I need some help with creating a custom page to export certain model data using Laravel Excel. I want to use the Filament view component to keep things consistent. But I couldn't find any info in documentation on blade components.
I just need a simple page where you can choose the model, select the timeframe (today, this week or this month) from a dropdown, and then hit an export button that calls my controller.
Or can i just create like a fake "Ressource" page and build it with the table builder?
If anyone knows how to do this or has any tips, I'd be super grateful for your input!
4 replies