src/Contracts/BaseJobset.php
public static function make($attributes = [])
    {
        $jobset = new static();

        // make jobset model
        $model = $jobset->makeModel($attributes);
        // update local model
        $jobset->setModel($model);
        // make job models and init job instances
        $jobset->makeJobs();
        // set jobset try at
        $jobsetTryAt = $jobset->getJobsEarliestTryAt();
        $jobset->model->setTryAt($jobsetTryAt);
        $jobset->model->persist();

        return $jobset;
    }
public static function make($attributes = [])
    {
        $jobset = new static();

        // make jobset model
        $model = $jobset->makeModel($attributes);
        // update local model
        $jobset->setModel($model);
        // make job models and init job instances
        $jobset->makeJobs();
        // set jobset try at
        $jobsetTryAt = $jobset->getJobsEarliestTryAt();
        $jobset->model->setTryAt($jobsetTryAt);
        $jobset->model->persist();

        return $jobset;
    }
public static function make ( $ attributes = [ ] ) { $ jobset = new static ( ) ; // make jobset model $ model = $ jobset -> makeModel ( $ attributes ) ; // update local model $ jobset -> setModel ( $ model ) ; // make job models and init job instances $ jobset -> makeJobs ( ) ; // set jobset try at $ jobsetTryAt = $ jobset -> getJobsEarliestTryAt ( ) ; $ jobset -> model -> setTryAt ( $ jobsetTryAt ) ; $ jobset -> model -> persist ( ) ; return $ jobset ; }
Make new jobset

@param array $attributes
@return BaseJobset
Make new jobset