dkulyk / nova-tabs

Another Laravel Nova Tabs Package
58 stars 7 forks source link

Tabs Labels #4

Closed Yelles closed 5 years ago

Yelles commented 5 years ago

Hi,

First, thanks for this usefull package!

This is not working :

new Tabs('Tabs', [
                HasMany::make('Address List', 'TierAddress'),
            ]),

I tried this too, without luck :

new Tabs('Tabs', [
                new Panel('Adress List 1', [
                    HasMany::make('TierAddress'),
                ]),
                'Adress List 2' => [
                    HasMany::make('TierAddress'),
                ],
            ]),

I'm looking to rename the create TierAddress Button & TierAddress Tabs Label. Any way to use the singularLabel and/or label of the ressource ?

dkulyk commented 5 years ago

You need to use Nova 1.3+ and update resources php artisan nova:publish

new Tabs('Relations', [ 
    HasMany::make('TabName', 'TierAddress', AddressResource::class)
        ->singularLabel('Address') // This will shown in Create button
]),
Yelles commented 5 years ago

You need to use Nova 1.3+ and update resources php artisan nova:publish

new Tabs('Relations', [ 
    HasMany::make('TabName', 'TierAddress', AddressResource::class)
        ->singularLabel('Address') // This will shown in Create button
]),

so trivial, I feel stupid! thank you so much