nova-inline-relationship
nova-inline-relationship copied to clipboard
requireChild() not Working
Hi, The requireChild() is not working for me. I don't Know if I missed anything.
In my case, I have a Client With a Many to Many relationship with Website. Then when
When I use:
HasMany::make(__('Websites'), 'websites', NovaWebsite::class)->inline()->requireChild()
I get the error:
Method KirschbaumDevelopment\NovaInlineRelationship\NovaInlineRelationship::requireChild does not exist
@henryavila would you please open your composer.lock
file, do a quick search for nova-inline-relationship
and check which version is currently installed? It should be version 0.2.0
. Hopefully this helps, but if not, please let me know and I will help get to the bottom of this!
Hi
Thanks for the great package.
When I use requireChild, I don't get any error, however there is no validation to make sure that there is at least one child. I also tried applying the required rule to the field, but it did not work either.
Also, when using requiredChild, when I remove the child, "something" still tries to save the model.
Please advise. Thanks Ashley