Class "Laravel\Nova\Menu\MenuSeparator" not found #5114
Replies: 2 comments 1 reply
-
|
You can however replicate the feature directly on your app. <?php
namespace App\Nova\Menu;
use Laravel\Nova\Makeable;
class MenuSeparator implements \JsonSerializable
{
/**
* Prepare the menu for JSON serialization.
*
* @return array<string, mixed>
*/
public function jsonSerialize(): array
{
return [
'component' => 'custom-menu-separator',
];
}
}Nova.booting(app => {
app.component('CustomMenuSeparator', require('./components/CustomMenuSeparator').default)
})<template>
<div class="sidebar-separator">
<hr class="border-none bg-50" style="height: 1px" />
</div>
</template>
<script>
export default {
props: ['item'],
}
</script> |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hmmm... would've been nice to have this mentioned in the changelog somewhere ;) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Worked fine on 4.18.2, it displayed a small spacer in the user menu.
Detailed steps to reproduce the issue on a fresh Nova installation:
Beta Was this translation helpful? Give feedback.
All reactions