dkulyk / nova-tabs

Another Laravel Nova Tabs Package
58 stars 7 forks source link

2 Tabs with same Model break the layout #8

Closed Yelles closed 5 years ago

Yelles commented 5 years ago

Hi,

I'm trying to add two Tabs with 2 different ressources that share the same model, in that case the layout is broken... Any idea ? may be i'm doing it wrong ? I would like to filter my model by type and add the filtered results in different tabs.

(new Tabs('Relations', [
                    HasMany::make('Drink Products', 'drink_products', \App\Nova\Product1::class),
                    HasMany::make('Food Products', 'food_products', \App\Nova\Product2::class),
                ]))->defaultSearch(true),

here is the result :

cleanshot 2019-02-17 at 23 54 45 2x
Yelles commented 5 years ago

my bad...