Watch Youtube Video (HINDI) :
Laravel Horizon; in this post we will look at laravel horizon how to install it, what the use of laravel horizon is, and how it is helping us by installing it in our application. These are all things we will cover in this Laravel Horizon Tutorial.
I will tell you How to Install Horizon in Laravel as well as how to open horizon in a local development server all things from scratch I will tell you to step by step. you just need to follow the step to integrate laravel horizon.
Horizon In laravel is a powerful tool for the app debugging and monitoring laravel app, incoming request, outgoing request, queue job, failed job, mail send, failed mail, errors, and server error. this is all the thing laravel horizon will monitor and let you know. So let's start integration.
Step 1. Install Project
Install Laravel 10 project, use the below command, and paste it into your command prompt, make sure your php version is 8.0 or greater. Skip this step if you already installed the laravel 10 projects, and move forward to the next step.
composer create-project laravel/laravel example-app
Step 2. Install Horizon Composer
We need to install composer install for the horizon in laravel, use the below-provided command in your project terminal and install. This command will install core libraries in your vendor folder of the application. use copy the given command and paste it into your terminal.
composer require laravel/horizon
Step 3. Install Horizon (Optional)
If you not getting installed horizon package, use this given command in your app terminal this will install force with the ignore all platform request and will help you to install that composer.
composer require laravel/horizon --ignore-platform-reqs
Step 4. Publish Asset
After successfully installing horizon, we will publicize its assets. publish its assets using horizon:install artisan command.
php artisan horizon:install
This will provide a default setting in your config, which you can modify according to your requirement.
Step 5. Start Server
Now we will start to sever using the below command.
php artisan serve
Now we will start Horizon Just by pressing the below URL in our browser.
We always thanks to you for reading our blogs.
Dharmesh Chauhan(Swapinfoway Founder)
We Are Also Recommending You :
- What are accessors and mutators In Laravel
- chunk() Method | Laravel Collection Example
- UPI Payment Gateway Integration in PHP/Laravel
- Laravel 6 Cron Job Task Scheduling Tutorial
- How To Integrate Stripe Payment Gateway in Laravel 9
- Laravel OneSignal Push Notification Integrate
- toArray() Method | Laravel Collection Example
- Laravel Email Send
- How to create Excel file in Laravel 6
- Laravel 6 REST API with Passport Tutorial