New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

repat/laravel-job-models

Eloquent Models for the tables job and job_fails as created by artisan queue:table and queue:failed-table
29,109 8
Install
composer require repat/laravel-job-models
Latest Version:0.11
PHP:>=5.6
Laravel:5 – 13
License:MIT
Last Updated:Jun 22, 2026
Links: GitHub  ·  Packagist
Maintainer: repat

laravel-job-models

Latest Version on Packagist Total Downloads

laravel-job-models contains 2 Eloquent models for the tables jobs and job_fails (or however they're defined in the queue.php config file) as created by the 2 artisan commands queue:table and queue:failed-table.

Installation

$ composer require repat/laravel-job-models

Documentation

Casting

There is a casting to \Carbon\Carbon objects for: reserved_at, available_at, created_at and failed_at and a casting to array for payload.

Attributes/ Mutators

There are getters for all the keys of the payload, including the data array. For more information, see the Laravel Documentation on Eloquent Mutators.

$job = \Repat\LaravelJobs\Job::first();

$job->display_name;
$job->max_tries;
$job->delay;
$job->timeout;
$job->timeout_at; // cast to Carbon if not null
$job->command_name; // ->payload['data']['commandName']
$job->command; // unserialized

License

Version

  • Version 0.9

Contact

repat

Flattr this git repo

Related Packages

laravellegends/interactive-model

This library is helpful to record data in the Eloquent models interactively via...

8,521 1
repat/laravel-password-reset-model

Eloquent Model for the password_resets table

9,260 1
repat/laravel-database-session-model

Eloquent Model for the sessions table as created by artisan session:table

11,541 1
repat/laravel-migration-model

Eloquent Model for the migrations table

4,091 1
jenssegers/model

An Laravel eloquent-like model class, for Laravel and other frameworks

4,742,551 395

Version History

Version Released PHP Laravel License
0.11 >=5.6 ^5.7|^6.20.42|^7.30.3|^8.22.1|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
0.9 >=5.6 ^5.7|^6.20.42|^7.30.3|^8.22.1|^9.0|^10.0|^11.0 MIT
0.8 >=5.6 ^5.7|^6.20.42|^7.30.3|^8.22.1|^9.0|^10.0 MIT
0.7 >=5.6 ^5.7|^6.20.42|^7.30.3|^8.22.1|^9.0 MIT
0.6 >=5.6 ^5.7|^6.0|^7.0|^8.0|^9.0 MIT