Skip to content
Discussion options

You must be logged in to vote

@s-fog What namespace are you using for the Badge?
There's a Badge Field, but also a Badge that is meant for the Menu.

So crossing my fingers that your issue is as easy as replacing \Laravel\Nova\Fields\Badge with \Laravel\Nova\Badge.

use Laravel\Nova\Badge;

MenuItem::resource(PuppyDraftNovaResource::class)->withBadge(Badge::make('some', 'info'))

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@s-fog
Comment options

@juse-less
Comment options

@s-fog
Comment options

Answer selected by s-fog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4566 on July 13, 2022 15:19.