laravel-menus icon indicating copy to clipboard operation
laravel-menus copied to clipboard

Non-static method Nwidart\Menus\Menu::create() should not be called statically

Open alielkhateeb opened this issue 7 years ago • 1 comments

I get this error when calling Menu::create Non-static method Nwidart\Menus\Menu::create() should not be called statically

create method truly is non static, what am I doing wrong? I just followed the doc!

alielkhateeb avatar Apr 26 '18 02:04 alielkhateeb

Hello,

That's because you're not calling it on the facade. You need to use the facade.

nWidart avatar Apr 26 '18 07:04 nWidart