Queue

Recommended QUEUE_CONNECTION=database

1

Stop Apache

Open XAMPP and stop Apache. Alternatively you can stop the Apache service in services.msc

2

Check table jobs exists in database

Connect to database and check whether table jobs exists. If not run:

php artisan migrate

jobs table migration was added in v2.25.11

3

Set QUEUE_CONNECTION=database in .env

.env
QUEUE_CONNECTION=database
4

Download nssm

Download nssm 2.24-101-g897c7ad and extract it.

5

Install service

Open cmd, navigate where nssm has been extracted and run:

nssm install weric-queue

Set in Dependencies Tab:

Path C:\xampp\php\php.exe

Startup directory C:\weric\api

Arguments artisan queue:listen

Set in I/O tab:

Error (stderr) C:\weric\api\storage\logs\queue.log

Confirm with click on Install service

6

Open Services

Open services.msc and start weric-queue

7

Start Apache

Open XAMPP and start Apache. Alternatively you can start the Apache service in services.msc

Last updated