Skip to content

Instantly share code, notes, and snippets.

@im-noob
Created June 10, 2021 14:38
Show Gist options
  • Save im-noob/21f321285d8d8e39748389ccf348f30d to your computer and use it in GitHub Desktop.
Save im-noob/21f321285d8d8e39748389ccf348f30d to your computer and use it in GitHub Desktop.
Fix Telescope Issue Laravel
Fix telescope path issue.
Auto Load Entries
0. mkdir -p resources/views/vendor/telescope
1. cp vendor/laravel/telescope/resources/views/layout.blade.php resources/views/vendor/telescope/
2. window.Telescope.path = '{{ env('MIX_APP_NAME') }}/telescope'; in view
3. MIX_APP_NAME=Projects/catalet/public/
if the above line tow working try with this..
2. let telescopePath = "{{ ltrim(parse_url(url(config('telescope.path')))['path'], '/') }}";
window.Telescope.path = telescopePath;
ref: https://stackoverflow.com/questions/56129344/laravel-telescope-not-working-on-a-fresh-install-wrong-path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment