cms icon indicating copy to clipboard operation
cms copied to clipboard

Admin login fails - menu has_role on non object

Open 06tech opened this issue 4 years ago • 1 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

06tech avatar Sep 20 '21 11:09 06tech

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

mepsd avatar Dec 15 '21 06:12 mepsd