Table of Contents
Using Laravel Telescope can debug requests, exceptions, databases, cache, and much more in real-time by accessing a specific route in your local or production environment in laravel 8 application.
Inside this article we will see how to work with Telescope in laravel 8.
This is very interesting topic to learn about a laravel debugging tool i.e laravel telescope. We have only few simple commands to run to get the things working.
Let’s get started.
Installation of Laravel 8 Application
Laravel Installation can be done in two ways.
- Laravel Installer
- By using composer
To install Laravel via Laravel installer, we need to install it’s installer first. We need to make use of composer for that.
composer global require laravel/installer
This command will install laravel installer at system. This installation is at global scope, so you type command from any directory at terminal. To verify type the given command –
This command will open a command palette of Laravel Installer.
To create ad install laravel project in system,
laravel new blog
With the name of blog a laravel project will be created at your specified path.
By using composer
Alternatively, we can also install Laravel by Composer command create-project. If your system doesn’t has Composer Installed, Click here to Install Composer ? Here is the complete command to create a laravel project-
composer create-project --prefer-dist laravel/laravel blog
After following these steps we can install a Laravel 8 application into system. To start the development server of Laravel –
php artisan serve
This command outputs –
Starting Laravel development server: http://127.0.0.1:8000
Assuming laravel 8 already installed at system.
Install Laravel Telescope – A Composer Pacakge
Laravel telescope is a composer package which is developed to use it for laravel applications.
Open project into terminal and run this command.
$ composer require laravel/telescope
If you want to use telescope in local environment, so you can use the below command:
$ composer require laravel/telescope --dev
Publishing Telescope Scaffolding & Migration
Back to terminal and run this given command. It will generate Telescope associated service provider, assets, configuration etc.
$ php artisan telescope:install
Automatically, a provider will be added into providers array of /config/app.php i.e App\Providers\TelescopeServiceProvider::class,
Migrate Telescope Migration
$ php artisan migrate
All we done ! No more settings requried.
Open project to terminal and type the command to start development server
$ php artisan serve
Above is the dashboard of Telescope monitoring screen. Let’s run few commands to see, how it works.
Run Php Artisan Command
We have run few artisan commands, have a look into telescope monitoring screen
Running Application routes
We have a sample route, after running it into browser. Have a look into monitoring screen.
Telescope Files Information
To see the working files which are responsible for all these functionalities, here is the path.
We hope this article helped you to learn about How to Work with Telescope In Laravel 8 Tutorial in a very detailed way.
Find More on Laravel 8 Articles here
- How to Create Multi Language Website in Laravel 8
- How To Read XML File in Laravel 8 – Example
- How To Upload And Save XML Data in Laravel 8
- Laravel 8 Ajax Post Request Tutorial
- Laravel 8 Authentication using Jetstream with Inertia Js
- Laravel 8 Authentication using Jetstream with Livewire
- Laravel 8 Authentication with Breeze Tutorial
- Laravel 8 Clear Cache of Route, View & Config
- Laravel 8 Cron Job Task Scheduling Tutorial
- Laravel 8 DataTable Ajax Pagination with Search And Sort
- Laravel 8 Firebase Push Notification Tutorial
- Laravel 8 Form Validation Methods
- Laravel 8 Installation Guide – PHP Framework
- Laravel 8 Layouts And Views Complete Guide
- Laravel 8 Routing Tutorial Step by Step Guide
- Laravel 8 Send Mail using Gmail SMTP Server
- Laravel 8 Send Push Notification to Android Using Firebase
- Laravel 8 Send Push Notification to IOS Using Firebase
- Laravel 8 Stub Customization
Hi, I am Sanjay the founder of ONLINE WEB TUTOR. I welcome you all guys here to join us. Here you can find the web development blog articles. You can add more skills in web development courses here.
I am a Web Developer, Motivator, Author & Blogger. Total experience of 7+ years in web development. I also used to take online classes including tech seminars over web development courses. We also handle our premium clients and delivered up to 50+ projects.