1. composer require laravel/telescope
2. php artisan telescope:install
3. php artisan migrate
4. php artisan vendor:publish --tag=telescope-migrations
5. Prevent the Telescope package from being auto-discovered by adding the following
to your composer.json file:
"extra": {
"laravel": {
"dont-discover": [
"laravel/telescope"
]
}
},
6. If you want to disable Telescope's data collection entirely using the
enabled configuration option:
'enabled' => env('TELESCOPE_ENABLED', true),
7. To run the telesecope use as seen here the url. http://localhost/practise/public/telescope
8. Very important point is open the layout.blade.php from ..\vendor\laravel\telescope\resources\views\layout.blade.php. At the bottom of the file update the code. Practise is my project name.
<script>
window.Telescope = @json($telescopeScriptVariables);
window.Telescope.path = 'practise/public/telescope';
</script>
Note: practise is the project name.
That's it.
No comments:
Post a Comment