Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Trying to get property 'name' of non-object

    General Discussion
    2
    2
    781
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Rise last edited by

      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>

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post