Laravel Artisan Queue Command: The queue:failed-table Command

December 7, 2016 —John Koster

The queue:failed-table command is used to create a new migration for the failed_jobs database table. This table is in order to keep track of any queue jobs that have failed. This command defines no parameters and can be used like so:

1php artisan queue:failed-table

The migration will create a failed_jobs database table with the following properties:

The failed_jobs database table

The queue:failed-table command will allow itself to be run multiple times. This results in multiple migrations being generated. Be sure to change the table name of the additional migration files so that your migrations do not break or throw errors when the migrate command is ran.

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.