Skip to content
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

Admin login fails - menu has_role on non object #366

Open
06tech opened this issue Sep 20, 2021 · 1 comment
Open

Admin login fails - menu has_role on non object #366

06tech opened this issue Sep 20, 2021 · 1 comment

Comments

@06tech
Copy link

06tech commented Sep 20, 2021

I have just installed Lavalite CMS and when I first tired to log in as the admin user I get the following Exception:-

ErrorException
Trying to get property 'has_role' of non-object (View: /lavalite/public/themes/default/views/litepie/menu/menu/admin.blade.php) - Line 2 which is:-

1 @foreach ($menus as $menu)
2 @if($menu->has_role)

Have I missed something?

Thanks

@06tech 06tech changed the title Admin login fails - menu has_role on onon ibject Admin login fails - menu has_role on non object Sep 20, 2021
@mepsd
Copy link

mepsd commented Dec 15, 2021

Make sure you have run the php artisan db:seed in order to get some default roles

for more you can check in Model.php model
/vendor/lavalite/framework/src/Litepie/Menu/Models/Menu.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@06tech @mepsd and others