Telescope is a powerful debugging tool for Laravel applications. It provides a beautiful interface for debugging and monitoring your application in real-time. With Telescope, you can easily find performance bottlenecks, track down errors, and debug your code more efficiently.
-
Install Telescope using Composer:
composer require laravel/telescopeThis command installs Telescope and its dependencies using Composer, a package manager for PHP.
-
Install Telescope using the
artisancommand:php artisan telescope:install
This command installs Telescope's database tables and configuration files. It also publishes Telescope's assets, such as its JavaScript and CSS files, to your application's
publicdirectory. -
Migrate the Telescope tables to your database:
php artisan migrate
This command runs the database migrations for Telescope, which creates the necessary tables in your database for storing Telescope's data.
-
Access Telescope by visiting
[your_domain.com]/telescopein your web browser.This step assumes that you have already set up your Laravel application and have a web server running. Once you have Telescope installed and your database configured, you can access it by visiting
MAIN_DOMAIN/telescopein your web browser. This will bring up the Telescope dashboard, where you can view your application's requests, exceptions, and other debugging information. -
(Optional) If you want to add middleware for authentication, you can do so by modifying the
middlewarearray in theconfig/telescope.phpfile. Simply add the name of your middleware class to the array.This step is optional and only applies if you want to add middleware to Telescope for authentication purposes. If you have a custom middleware class that you want to use with Telescope, you can add it to the
middlewarearray in theconfig/telescope.phpfile. This will ensure that your middleware is applied to Telescope's routes.
You just need to remove th composer library
composer remove laravel/telescope