Download the PHP package mohammedmanssour/failed-jobs-model without Composer
On this page you can find all versions of the php package mohammedmanssour/failed-jobs-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mohammedmanssour/failed-jobs-model
More information about mohammedmanssour/failed-jobs-model
Files in mohammedmanssour/failed-jobs-model
Package failed-jobs-model
Short Description An Eloquent model, query scopes, and Artisan commands to inspect, analyze, and prune Laravel's failed_jobs table — with an indexed display_name for fast lookups and stats.
License MIT
Homepage https://github.com/mohammedmanssour/failed-jobs-model
Informations about the package failed-jobs-model
Failed Jobs Model
An Eloquent model, query scopes, and Artisan commands to inspect, analyze, and prune Laravel's failed_jobs table — with an indexed display_name for fast lookups and stats.
Installation
The package adds a display_name column (a generated column derived from payload->displayName) and a compound index on [display_name, failed_at] — so class-name lookups also satisfy the default failed_at ordering from the same index, with no filesort. The migration runs automatically with:
Supports MySQL, PostgreSQL, and SQLite. On MySQL/SQLite the column is
VIRTUAL; on PostgreSQL it isSTORED.
Optionally publish the config and migration:
The model
MohammedManssour\FailedJobsModel\FailedJob maps to the failed_jobs table.
Every query is ordered by failed_at descending by default.
Scopes
Commands
Scheduled pruning
The package schedules queue:prune-failed for you, configured via config/failed-jobs-model.php:
Testing
The suite runs on in-memory SQLite by default. To run it against MySQL or PostgreSQL, copy .env.example to .env and set the DB_* values.
License
The MIT License (MIT). Please see License File for more information.
All versions of failed-jobs-model with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0