DEV Community

Discussion on: Laravel Nova: Adding custom buttons to resource toolbars

Collapse
 
camaech profile image
Cam Heikkinen

This is the important part: "You can define your resources toolbar component by registering a component with your resources plural name followed by -detail-toolbar."

So in my case, I was using for an Article nova resource. So I changed the 'quotes-detail-toolbar' to 'articles-detail-toolbar'. That's it. You don't even need to add it as a tool, like you do with most other Nova tools in your NovaServiceProvider.

The button will now show up in your Resource (url should be something like: '/resources/articles/76'), assuming you ran 'npm run dev' on your tool.

Collapse
 
hemnyos profile image
Hemnyos

hi ! i'm so sorry, i'm learning laravel and i dont understand where i can add my button. I mean i did all of things at top, but event a random button doesnt appeared x3