Laravel Nova 4 customize layout
Asked Answered
L

1

6

Since Nova 4 has no blades anymore that you could publish, how could you approach customization the best in for example the head navbar next to the searchbar? I'd like to add a drop-down there but I don't know where to start or what to change?

In Nova 3 and earlier you had to publish the resources of nova and then you could add thing in your layout.blade.php.

Example example screenshot

Luciano answered 9/5, 2022 at 20:43 Comment(0)
C
0

I think you have to override the Main Header Vue Component (just for info, located in: vendor/laravel/nova/resources/js/layouts/MainHeader.vue and etc...)

Can you try using the approach below? https://laracasts.com/discuss/channels/nova/how-to-override-a-nova-component?reply=672085

Corrective answered 25/5, 2022 at 12:36 Comment(2)
Hi Nikolay. After I change that .vue component, what should I "rebuild"? I am confused on that part...Indelicate
You have to rebuild the tool and register the component with the same name as the component you want to overwrite.Corrective

© 2022 - 2024 — McMap. All rights reserved.