Create a new job and save it to the specified queue.
public static create ( string $queue, string $class, array $args = null, boolean $monitor = false, string $id = null ) : string | ||
$queue | string | The name of the queue to place the job in. |
$class | string | The name of the class that contains the code to execute the job. |
$args | array | Any optional arguments that should be passed when the job is executed. |
$monitor | boolean | Set to true to be able to monitor the status of a job. |
$id | string | Unique identifier for tracking the job. Generated if not supplied. |
리턴 | string |