protected function seedSchedules()
    {
        $defaultSchedules = [
            [
                'name'         => 'Demo resets every half hour!',
                'message'      => 'You can schedule downtime for _your_ service!',
                'status'       => Schedule::UPCOMING,
                'scheduled_at' => (new DateTime())->add(new DateInterval('PT2H')),
            ],
        ];

        Schedule::truncate();

        foreach ($defaultSchedules as $schedule) {
            Schedule::create($schedule);
        }
    }
protected function seedSchedules()
    {
        $defaultSchedules = [
            [
                'name'         => 'Demo resets every half hour!',
                'message'      => 'You can schedule downtime for _your_ service!',
                'status'       => Schedule::UPCOMING,
                'scheduled_at' => (new DateTime())->add(new DateInterval('PT2H')),
            ],
        ];

        Schedule::truncate();

        foreach ($defaultSchedules as $schedule) {
            Schedule::create($schedule);
        }
    }
protected function seedSchedules ( ) { $ defaultSchedules = [ [ 'name' => 'Demo resets every half hour!' , 'message' => 'You can schedule downtime for _your_ service!' , 'status' => Schedule :: UPCOMING , 'scheduled_at' => ( new DateTime ( ) ) -> add ( new DateInterval ( 'PT2H' ) ) , ] , ] ; Schedule :: truncate ( ) ; foreach ( $ defaultSchedules as $ schedule ) { Schedule :: create ( $ schedule ) ; } }
Seed the schedules table.

@return void
Seed the schedules table .