title: Laravel Telescope is not working in production with Laravel Voyager. How to secure /telescope/* routes in Laravel 7?
body: <p>I'm using Laravel with Auth, Auth UI, Voyager admin panel, Telescope. Everything works fine untill I change <code>APP_ENV=local</code> to <code>APP_ENV=production</code> in .env file. When I change the .env file to production then I get the below error. screen shot of my issue is <a href="https://i.stack.imgur.com/f0P8m.png" rel="nofollow noreferrer">here</a>.</p>
  <blockquote>
  <p>Trying to get property 'name' of non-object</p>
  </blockquote>
  <p>Basically I want to protect <code>/telescope/*</code>routes in production. But before doing that I am getting this error.
  I read the same issue in github <a href="https://github.com/the-control-group/voyager/issues/3991" rel="nofollow noreferrer">similar issue github link</a>. I think the answer is present in the link but im unable to digest it as im a newbie.
  Any help to fix this, and protecting telescope routes in production is much appreciated. I tried to create a Policy and give read permissions to the user via policy. But somehow im not able to fix it.</p>