Will 🇬🇹
Placholder component doesn't render state by default
Expected behaviour https://filamentphp.com/docs/3.x/forms/layout/placeholder
Since they are used to render text-only fields they are not bind to a "property". So it makes sense to access the
$record
if thats how you want to use it3 replies
Problems using Repeater in an action
Since your
Repeater
is tied to a ->relationship()
it gets saved to the DB per item in your repeater. So it makes sense to only return the information of your current item.
If you need to get information OUTSIDE your repeater you need to access it by injecting Get $get
in your ->mutateRelationshipDataBeforeCreateUsing(function ($record, $data) {
Like this
3 replies
How to get team_id when creating new record from Relation Manager
Thanks @tomc actually found probaly a safer way since Users can edit values in hidden fields
As mention in the docs - https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#customizing-data-before-saving
5 replies