Notes:
- Redis must be installed and running on the server to use this application.
- It does not work on Windows machines due to ext-pcntl extension issues. Use it on non-Windows machines.
-
Run
composer update
. -
Run
php artisan key:generate
. -
Run
php artisan horizon:install
. -
Update your
.env
file with the following configurations:-
Configure mail settings:
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=YOUR_MAIL_ADDRESS MAIL_PASSWORD="YOUR_PASSWORD" MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=YOUR_MAIL_ADDRESS MAIL_FROM_NAME="MAIL_NAME"
-
Set
QUEUE_CONNECTION
toredis
:QUEUE_CONNECTION=redis
-
Configure redis settings:
REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 REDIS_CLIENT=predis
-
-
Run
php artisan migrate
(for database tables). -
Run
php artisan horizon
(to start Horizon). -
Open your browser and go to
your-domain/horizon
to access the Horizon Dashboard.
Note: Make sure to follow these steps in order. Also, ensure that Redis is installed and running.
Warning: This example not work on Windows machines. It is recommended to use it in a non-Windows environment.