PHPackages                             aliirfaan/citronel-job - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. aliirfaan/citronel-job

ActiveLibrary[Queues &amp; Workers](/categories/queues)

aliirfaan/citronel-job
======================

Use jobs by loading settings from a database table for better configuration management.

1.0.0(1y ago)0251MITPHPPHP &gt;=8.0.0

Since Nov 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aliirfaan/citronel-job)[ Packagist](https://packagist.org/packages/aliirfaan/citronel-job)[ RSS](/packages/aliirfaan-citronel-job/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Citronel job
============

[](#citronel-job)

Use jobs by loading job settings from a database table for better configuration management.

Features
--------

[](#features)

- Migration to create table for storing job configuration.
- Job class that loads a job based on an id found in database table.

Requirements
------------

[](#requirements)

- [Composer](https://getcomposer.org/)
- [Laravel](http://laravel.com/)

Installation
------------

[](#installation)

- Install the package using composer:

```
 $ composer require aliirfaan/citronel-job
```

Traits
------

[](#traits)

- HasJobPolicy
    Use this trait to get job policy by id in your service class

Jobs
----

[](#jobs)

- CitronelJob
    Extend this class in your job class

Usage
-----

[](#usage)

Migration
---------

[](#migration)

Run migration to create job\_polices table

```
 $ php artisan migrate
```

Seeder
------

[](#seeder)

Create a seeder to add rows to the job\_polices table. Below is an example seeder run().

```
