eminiarts / nova-tabs

Laravel Nova Tabs Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slug field inside tab still doesn't work

Brand3000 opened this issue · comments

Just check it

Excuse me?

When the slug field is outside of any tab, there's a preview request to the url http://usicn.localhost/nova-api/pages/field/slug/preview
However, if the slug is inside, the url is http://usicn.localhost/nova-api/undefined/field/slug/preview
undefined instead of pages

You can watch a video with the issue here https://brand.dn.ua/1.html

:resource-name="field.resourceName"

Only relation fields has field.resourceName, I believe it should have use resourceName props instead but not 100% sure.

I am having the same issue as well. When I move the slug field + the field it is related to outside of a tab then it works.
Example field config:

Text::make(__('Title'), 'title')->rules('required'),
Slug::make(__('Slug'), 'slug')->from('title'),

This works, as long as it's not also involving nova-translatable fields, which are having a separate issue related to that plugin:
outl1ne/nova-translatable#84