Comments (7)
Yes, but in your error your example, you use the wrong one based of the error.
You need to use the facade
use Pingpong\Menus\Menu\MenuFacade as Menu
Menu::create('navbar', function($menu)
{
$menu->url('home', 'Home', ['target' => 'blank']);
});
from menus.
You should import the menu facade, you used the menu class.
Pingpong\Menus\Menu\MenuFacade
from menus.
Already did...
'Menu' => Pingpong\Menus\MenuFacade::class,
and the provider
Pingpong\Menus\MenusServiceProvider::class,
from menus.
It works now Thank you. PHPStorm doesn't import the right class :/
Thanx!
from menus.
No problem 😄
Yeah phpstorm couldn't know about the other classname. Issue is mainly the name of the facade in this package.
from menus.
That's the disadvantage of using automated task ✌️
from menus.
PS: How do you make submenu ? something like this:
- home
- Account
- 1
- 2
I used $menu->dropdown() and created a new Presenter
from menus.
Related Issues (20)
- Ordering menu items HOT 2
- Pingpong menus {{ csrf_token() }} issue with laravel 5.1.6 HOT 1
- Database menus HOT 7
- Polymorphic / Model support HOT 1
- Active item on menu items having route with any parameter HOT 7
- image as title HOT 1
- Artisan error HOT 1
- illuminate/support v5.1.1 requires php >=5.5.9
- Conflict facades
- Laravel 5.2 problem HOT 1
- Object of class Illuminate\Routing\UrlGenerator could not be converted to string HOT 2
- Title in dividers ?
- Menu not active
- Modular Menu? HOT 1
- Auth Role with menu
- Docs is down... HOT 1
- Please support Laravel 5.3
- Docs leads to scam site HOT 3
- Error package:discover !
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from menus.