for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Laravel\Forge\Jobs;
use Laravel\Forge\Jobs\Commands\GetJobCommand;
use Laravel\Forge\Jobs\Commands\ListJobsCommand;
use Laravel\Forge\Jobs\Commands\CreateJobCommand;
class JobsManager
{
/**
* Initialize new create job command.
*
* @param string $command
* @return \Laravel\Forge\Jobs\Commands\CreateJobCommand
*/
public function schedule(string $command)
return (new CreateJobCommand())->schedule($command);
}
* Alias for "schedule" method.
public function create(string $command)
return $this->schedule($command);
* Initialize new list jobs command.
* @return \Laravel\Forge\Jobs\Commands\ListJobsCommand
public function list()
return new ListJobsCommand();
* Initialize new get job command.
* @param int $jobId
* @return \Laravel\Forge\Jobs\Commands\GetJobCommand
public function get(int $jobId)
return (new GetJobCommand())->setResourceId($jobId);