atabegruslan
Explore posts from serversConditionally add and update relations
Actually, policy is only half the answer.
Normally, you create a policy, then you apply it in controller method, like
$this->authorize('action', $modelInstance);
But Filament have its own controllers. It doesnt go thru any of the controllers that I wrote.
Hence in this situation, how can policy (or any type of pre-saving checks) be done upon the click of the add/delete/edit buttons?16 replies
Conditionally display a section, based on another field's value
No.
I tried something else too, but still same result (with an empty section).
Below is Filament Resource for Delivery model, infolist function:
PS: Delivery is associated with an Order. Order is associated with a pair of Addresses, like
$delivery->order->addresses
7 replies