-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot instance menu #13
Comments
Hi, can you give us some more information? maybe some code snippets etc.? What and where etc. Thanks. |
thanks for reply. i just uncomment the line in menus.php in app folder after instalation the package.
but it give me an error "Call to a member function url() on a non-object". Thanks. |
Can you tell me what version are you using ? |
i'am using
and laravel 4.2 |
Try add the following code to 'Pingpong\Menus\MenusServiceProvider',
'Pingpong\Trusty\TrustyServiceProvider',
'Pingpong\Admin\Providers\ConsoleServiceProvider', And also the facade 'Menu' => 'Pingpong\Menus\Facades\Menu',
'Role' => 'Pingpong\Trusty\Entities\Role',
'Permission' => 'Pingpong\Trusty\Entities\Permission',
'Trusty' => 'Pingpong\Trusty\Facades\Trusty', |
yes i've added it before but it still gave me an error thank for your kindness to answer |
Try update to new version 'Pingpong\Menus\MenusServiceProvider',
'Pingpong\Trusty\TrustyServiceProvider',
'Pingpong\Admin\Providers\ConsoleServiceProvider', Replace with : 'Pingpong\Admin\Providers\SupportServiceProvider',
'Pingpong\Admin\AdminServiceProvider', And also now you can remove the facades aliases from your config file. Because now, that aliases will autoloaded automatically. |
it still gave an error and also the defult menu doesn't appear in view like previous version.. but I resolved it by adding the menus.php in SupportServiceProvider
and it work like what I want. thanks @gravitano |
Hmm, thanks for telling me. |
hi.. thank for the package
i use this for my project but why i get error "Call to a member function url() on a non-object" or when i instance the menu from your package.
i do follows all the instruction. how to resolve it?
thanks in advance.
The text was updated successfully, but these errors were encountered: