Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Job Models Laravel Package

repat/laravel-job-models

Two Eloquent models for Laravel's jobs and job_fails tables, with Carbon casting for timestamps, array casting for payloads, and getters for payload keys like display_name, max_tries, command, and more.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Job Observability & Debugging: Enables product teams to query queue jobs and failures like database records, accelerating debugging for time-sensitive features (e.g., payments, notifications).
  • Roadmap for Retry Logic & Analytics: Simplifies building retry mechanisms, failure pattern analysis, and dashboards (e.g., tracking failed_at, timeout_at) without custom SQL.
  • Build vs. Buy: Avoids reinventing Eloquent models for queue tables, reducing dev time for internal tooling such as admin panels, alerting, or data export.
  • Use Cases:
    • Admin panels showing job metadata (display_name, max_tries) to non-technical users.
    • Alerts triggered when jobs hit max_tries or exceed timeout.
    • Compliance/audit exports of job payloads (data array).

When to Consider This Package

  • Adopt if:
    • Your Laravel app uses database-backed queues (queue:table and queue:failed-table migrations already run).
    • You need structured access to job/failure data for internal tools (monitoring, debugging, analytics) and want to avoid raw SQL.
    • Your team lacks time to write custom Eloquent models for queue tables.
  • Look elsewhere if:
    • You use non-Laravel queue systems (e.g., RabbitMQ, AWS SQS) without Laravel’s database queue tables.
    • You rely on Laravel Horizon or Redis/SQS queues that don’t use the jobs table.
    • Your queue tables are highly customized (non-standard columns) and the package’s casting/mutators don’t align.
    • You need built-in job lifecycle events (e.g., JobFailed) or real-time monitoring—this package is read-only.
  • Note: Low community traction (8 stars, 0 dependents) and NOASSERTION license (README says MIT)—validate license and pin versions; recent releases (through Laravel 12) mitigate maintenance risk.

How to Pitch It (Stakeholders)

For Executives:
“This lightweight package lets us query and analyze queue jobs and failures like database records—no custom code needed. It cuts debugging time for critical jobs (e.g., payments, notifications) and enables job retry dashboards or failure alerts, improving reliability without extra dev effort.”

For Engineering:
*“Replace manual SQL queries for jobs/job_fails tables with Eloquent models that auto-cast timestamps (e.g., reserved_at → Carbon) and expose payload data as properties (e.g., $job->command_name). Perfect for:

  • Debugging: $job->failed_at->diffInMinutes() to measure downtime.
  • Tooling: Build a /jobs/{id} API endpoint with zero boilerplate.
  • Maintenance: MIT-licensed, minimal dependencies, actively updated (Laravel 12 support). Extend models via inheritance for custom scopes.”*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv