PHPackages                             garbetjie/laravel-queue-database - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. garbetjie/laravel-queue-database

ActiveLibrary[Database &amp; ORM](/categories/database)

garbetjie/laravel-queue-database
================================

Laravel queue driver for the database with optimistic queue locking.

1.3.3(5y ago)2376MITPHPPHP &gt;= 7.2

Since May 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/garbetjie/laravel-database-queue)[ Packagist](https://packagist.org/packages/garbetjie/laravel-queue-database)[ RSS](/packages/garbetjie-laravel-queue-database/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (16)Used By (0)

Laravel Database Queue Driver
=============================

[](#laravel-database-queue-driver)

A database queue driver for Laravel with optimistic locking and job count caching. Heavily inspired by the article at , and the relevant package at .

Installation
------------

[](#installation)

1. Install this package using composer:

```
composer require garbetjie/laravel-database-queue

```

2. Run the migration to alter the jobs table. If you haven't yet run the command to create the jobs table, do so first (`./artisan queue:table`).

```
php artisan garbetjie:database-queue:table
php artisan migrate

```

3. Replace the `database` driver in your queue connection with `database-garbetjie`:

```
