Trying to get property 'name' of non-object



  • Im following the devdocs but i get stuck before step 10, I can't visualize the master layout when creating my hello world package. this is my error.

    Trying to get property 'name' of non-object (View: /home/r/bagisto/packages/Webkul/Admin/src/Resources/views/layouts/nav-top.blade.php) (View: /home/r/bagisto/packages/Webkul/Admin/src/Resources/views/layouts/nav-top.blade.php) (View: /home/r/bagisto/packages/Webkul/Admin/src/Resources/views/layouts/nav-top.blade.php)

    and this is my helloworld.blade.php

    @extends('admin::layouts.master')

    {{ __('helloworld::app.hello-world.name') }}

    <h1>Hello World</h1>



  • Hi @Rise

    Don't use @extends('admin::layouts.master') file as it used for only login admin users, so when you are not login to your system, above error will appear.

    Thanks


Log in to reply