nova-tabs
nova-tabs copied to clipboard
HasTabs trait hides relationship panels in Laravel Nova 4.10.1
Ver. 2.0.9
There seems to be a conflict with Laravel Nova 4.10.1. When adding the HasTabs trait to a resource, relationship panels are hidden on the update/create screens.


When removing the trait:

Actually i see now i miss a bunch of tabs, never mind.
With Nova 4.10.1 and Tabs 2.1.0 I seem to have everything back.
Keep in mind, HasMany and MorphMany, shouldn't show up on create/update, that's simply per Nova's design.

Let me know if it works for you now.
Thank you so much 🥳 It works great.
It seems to be broken again in 4.11.1 @marcfilipan
on nova 4.12.6 the HasTabs trait actually makes all HasMany relationships dissapear in details view, also with erros in console:
TypeError: Cannot read properties of undefined (reading '0')
Looks like it only works now for Nova v4.10.1. We downgraded to make it work for the meantime because it's broken in Nova v4.12.x.
Thanks
I'll be able to take a look at it at the of the week.
@marcfilipan did you have a look already? anything i can do to help fix this issue?
@crynobone said this is related to the change in 4.12 Nova will now retain the user-defined panel sort order.
@mstaack were you able to solve the issue?
We are really waiting for you. Thanks!
I have everything updated to latest, and it seems to work fine for me.
I'll try it on a fresh install to see if something goes wrong.
I can confirm I'm experiencing the issue on anything above Nova 4.11. Running Laravel 8, PHP 7.4, Nova Tabs 2.1.
When I upgrade Nova to 4.12 or the latest (4.17 I believe), relationship panels no longer display if they aren't wrapped in a tab if the HasTabs
trait is present.
I guess the solution is wrap relationships in a Tab?
I've always had mine wrapped in a Tab and I've not seen this issue once, so it might be worth just updating docs to make that the recommended way of displaying them?
@marcfilipan the issues happens when the relations are not within a tab. try reproducing this as soon as you can ;)
Can anyone tests this fix: https://github.com/eminiarts/nova-tabs/pull/247
Fixed in https://github.com/eminiarts/nova-tabs/releases/tag/2.2.0