wotroe
Using ->having on a query when using a TernaryFilter
That was it! Quickly bodged this together: https://gist.github.com/MrWouterNL/5cf14e4baf7b333039c15efddb4e9914
7 replies
Using ->having on a query when using a TernaryFilter
https://github.com/filamentphp/filament/discussions/6753 Looks like I'm running into a similar issue to this
7 replies
Filling in hasMany relationship from Filament form
that definitely sounds more like what I'm looking for, the problem is that the relation fields are on the other table, so I'm not modifying the 'current' model.
I'm trying to modify the hostbil_client_id field on an ExternalCustomer model, from a HostbillClient model in a HostbillClientResource.
19 replies
Filling in hasMany relationship from Filament form
This is how my database looks. I have a resource for my HostbillClient model, and I want to add a handful of external customers to this HostbillClient.
A HostbillClient can have multiple ExternalCustomers, but there is an unique constraint on the external_customers table on the external_customers_type and hostbill_client_id table. So a HostbillClient can only have one ExternalCustomer connected of a specific type.
19 replies