LavaLite / cms

Multilingual PHP CMS built with Laravel and bootstrap

Home Page:https://lavalite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin login fails - menu has_role on non object

06tech opened this issue · comments

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

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