How to attach and detach a relation in case there were values
My resource may has One to One (Polymorphic) relationship with Review, I want to create a review if I wrote values
and if it was null want to delete it if existed
I really appreciate your help folks, really thanks for helping others!
Solution:Jump to solution
Found the solution π
https://filamentphp.com/docs/3.x/forms/advanced#conditionally-saving-data-to-a-relationship
```php
->relationship(...
1 Reply
Solution