public function checkForNewSchedulers()
    {
        $current = SchedulerRepo::all();

        foreach($this->getScheduledEvents() as $event) {
            if (count($current->where('mutex', $event['mutex'])) < 1) {
                $command = new SchedulerRepo;
                $command->fill($event);
                $command->save();
            }
        }
    }
public function checkForNewSchedulers()
    {
        $current = SchedulerRepo::all();

        foreach($this->getScheduledEvents() as $event) {
            if (count($current->where('mutex', $event['mutex'])) < 1) {
                $command = new SchedulerRepo;
                $command->fill($event);
                $command->save();
            }
        }
    }
public function checkForNewSchedulers ( ) { $ current = SchedulerRepo :: all ( ) ; foreach ( $ this -> getScheduledEvents ( ) as $ event ) { if ( count ( $ current -> where ( 'mutex' , $ event [ 'mutex' ] ) ) < 1 ) { $ command = new SchedulerRepo ; $ command -> fill ( $ event ) ; $ command -> save ( ) ; } } }
Check for any new schedulers, and add them to the database.

@return void
Check for any new schedulers and add them to the database .