infinetyes / nova-menu-builder Goto Github PK
View Code? Open in Web Editor NEWA Menu Builder for Laravel Nova
License: MIT License
A Menu Builder for Laravel Nova
License: MIT License
String and Array helpers are removed from laravel 6.0 Core Framework
https://laravel.com/docs/6.0/upgrade#helpers
So if You need to still use the helper install the package
composer require laravel/helpers
Or you can use by Laravel facade
use Illuminate\Support\Str;
$slug = Str::slug('Laravel 5 Framework', '-');
Laravel 8
Class Infinety\MenuBuilder\MenuBuilderServiceProvider located in ./vendor/infinety-es/nova-menu-builder/src/ToolServiceProvider.php does not comply with psr-4 autoloading standard. Skipping.
Class 'Infinety\MenuBuilder\MenuBuilderServiceProvider' not found
Please rename ToolServiceProvider.php to MenuBuilderServiceProvider.php
It would be really cool, if you could set ID on the < ul> tag :)
There is a link class of nav-link hardcoded into the model, it would be best to allow this to be overridden or added just like you do with the parent and child classes.
It is not good code:
/vendor/infinety-es/nova-menu-builder/src/Http/Models/MenuItems.php return '<a class="nav-link '.$this->classes.'" href="'.$this->link.'" target="'.$this->target.'">'.$this->name.'</a>';
I propose to bring this parameter to this place - /nova/resources/menu-builder/1/edit
Do you need help?
Hello,
I've just installed this and am having some issues getting it working. Laravel 5.8, Nova 2.0.5 and getting the following error when trying to load or create items:
Call to a member function authorize() on string
Thanks
I've just upgraded to Laravel 6 and experiencing issues with the menu builder that references old methods, any updates when Laravel 6 will be supported?
Call to undefined function Infinety\MenuBuilder\Http\Models\starts_with()
On a fresh Laravel 6x install and the latest menu builder I can easily create a new menu but when adding a new menu item after each letter is added to an input field onkeyup the popup flashes and the input focus is removed so you need to click into the input field for each character, it does save afterwards.
I have tried to add a dynamic route where the route name is defined but keep getting an error message to say the route is not a real route name.
In my web.php file, I have a route defined for blog, so I put blog into the name but always get the same message.
How do you define a route properly in the menu manager?
Im really liking this menu package for nova. Thank you for all the effort.
Is there a way to extend the ability to also add the active class to the li when the routes match? as well as a class to the a:href tag within the li?
Thanks in advance! i love this one ! works pretty nice.
I can't use it by default, I have a table called "menu" so i get a error :P
Could be nice add a prefix , in_menu for example.
Thanks anyway !
Is there a way to get the menu name in my blade views?
I'm not using Vue in my website front views so I can't properly use the json feature.
Also I'm not sure about this but if I want to test if the menu exists I'll do something like this:
@if (menu_builder('main'))
{!! menu_builder('main') !!}
@endif
But what if somehow I change the slug? I wonder if there's a better way to achieve this.
Thx for your work anyways :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.