定制 repat/laravel-job-models 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

repat/laravel-job-models

最新稳定版本:0.9

Composer 安装命令:

composer require repat/laravel-job-models

包简介

Eloquent Models for the tables job and job_fails as created by artisan queue:table and queue:failed-table

README 文档

README

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

统计信息

  • 总下载量: 27.35k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04