Hello Friends,
Today we will talk about laravel telescope. what is laravel telescope and how it’s works.
So, first of all we need to install laravel telescope package by composer then we will see how to use it.
Basically, laravel telescope makes a wonderful structure to your local Laravel development environment. Laravel telescope provides insight into the requests coming into your application, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps, and more.
Let’s see the examples step by step :-
Install the Telescope package into your Laravel project using composer package manager:
composer require laravel/telescope
Then after installing Laravel Telescope, publish its assets using the telescope:install
Artisan command. After installing Laravel Telescope, you need also run the migrate
command in order to create the tables needed to store Telescope’s data:
Also Read: – How to use Eloquent firstOrCreate in laravel
php artisan telescope:install
php artisan migrate
Note:- Local Only Installation, If you plan to only use Telescope to assist your local development, you may install Telescope using the --dev
flag:
Also Read:- How To Use Sweetalert Message Box In Laravel
composer require laravel/telescope --dev
php artisan telescope:install
php artisan migrate
Now you are ready to run your laravel telescope. so let’s run project:
Also Read:- Laravel Notification Alert Using Notify Plugin
php artisan serve
Laravel telescope features :-
- Requests
- Commands
- Schedule
- Jobs
- Batches
- Cache
- Dumps
- Events
- Exceptions
- Gates
- Logs
- Models
- Notifications
- Queries
- Redis
- Views
Also Read:- How To Create Custom Helper Function In Laravel
Thanks, I hope it will help you.