Create a new job and save it to the specified queue.
public static enqueue ( string $queue, string $class, array $args = null, boolean $trackStatus = false ) : string | boolean | ||
$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. |
$trackStatus | boolean | Set to true to be able to monitor the status of a job. |
리턴 | string | boolean | Job ID when the job was created, false if creation was cancelled due to beforeEnqueue |