commit021d98b09bAuthor: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Apr 20 17:13:48 2021 +0200 réglages des créneaux de collecte commit76deb33629Merge:b25c9e86742eaaAuthor: Olivier Legat <olivier.legat@ldc.fr> Date: Tue Apr 20 13:49:03 2021 +0200 Merge branch 'creneau-settings' of https://voight001.lesidc.com/boutique-cnc into creneau-settings commitb25c9e81a0Author: Olivier Legat <olivier.legat@ldc.fr> Date: Fri Apr 16 13:56:55 2021 +0200 work in progress commit6742eaabd2Merge:ff649f7e4f2151Author: Olivier Legat <olivier.legat@ldc.fr> Date: Mon Apr 19 08:38:35 2021 +0200 Merge branch 'creneau-settings' of https://voight001.lesidc.com/boutique-cnc into creneau-settings commitff649f775bAuthor: Olivier Legat <olivier.legat@ldc.fr> Date: Fri Apr 16 13:56:55 2021 +0200 work in progress commite4f2151193Author: Olivier Legat <olivier.legat@ldc.fr> Date: Fri Apr 16 13:56:55 2021 +0200 work in progress
86 lines
2.8 KiB
PHP
86 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\TimeslotSetting;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class TimeslotSettingsSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$mondays = new TimeslotSetting();
|
|
$mondays->day_index = '0';
|
|
$mondays->morning_start = "09:01";
|
|
$mondays->morning_end = "12:00";
|
|
$mondays->afternoon_start = "13:00";
|
|
$mondays->afternoon_end = "17:00";
|
|
$mondays->interval = "00:15";
|
|
$mondays->max_orders_per_interval = 4;
|
|
$mondays->min_order_preparation = "01:00";
|
|
$mondays->save();
|
|
|
|
$tuesdays = new TimeslotSetting();
|
|
$tuesdays->day_index = '1';
|
|
$tuesdays->morning_start = "09:02";
|
|
$tuesdays->morning_end = "12:00";
|
|
$tuesdays->afternoon_start = "13:00";
|
|
$tuesdays->afternoon_end = "17:00";
|
|
$tuesdays->interval = "00:15";
|
|
$tuesdays->max_orders_per_interval = 4;
|
|
$tuesdays->min_order_preparation = "01:00";
|
|
$tuesdays->save();
|
|
|
|
$wednesdays = new TimeslotSetting();
|
|
$wednesdays->day_index = '2';
|
|
$wednesdays->morning_start = "09:03";
|
|
$wednesdays->morning_end = "12:00";
|
|
$wednesdays->afternoon_start = "13:00";
|
|
$wednesdays->afternoon_end = "17:00";
|
|
$wednesdays->interval = "00:15";
|
|
$wednesdays->max_orders_per_interval = 4;
|
|
$wednesdays->min_order_preparation = "01:00";
|
|
$wednesdays->save();
|
|
|
|
$thursdays = new TimeslotSetting();
|
|
$thursdays->day_index = '3';
|
|
$thursdays->morning_start = "09:04";
|
|
$thursdays->morning_end = "12:00";
|
|
$thursdays->afternoon_start = "13:00";
|
|
$thursdays->afternoon_end = "17:00";
|
|
$thursdays->interval = "00:15";
|
|
$thursdays->max_orders_per_interval = 4;
|
|
$thursdays->min_order_preparation = "01:00";
|
|
$thursdays->save();
|
|
|
|
$fridays = new TimeslotSetting();
|
|
$fridays->day_index = '4';
|
|
$fridays->morning_start = "09:05";
|
|
$fridays->morning_end = "12:00";
|
|
$fridays->afternoon_start = "13:00";
|
|
$fridays->afternoon_end = "17:00";
|
|
$fridays->interval = "00:15";
|
|
$fridays->max_orders_per_interval = 4;
|
|
$fridays->min_order_preparation = "01:00";
|
|
$fridays->save();
|
|
|
|
$saturdays = new TimeslotSetting();
|
|
$saturdays->day_index = '5';
|
|
$saturdays->morning_start = "09:06";
|
|
$saturdays->morning_end = "12:00";
|
|
$saturdays->interval = "00:15";
|
|
$saturdays->max_orders_per_interval = 4;
|
|
$saturdays->min_order_preparation = "01:00";
|
|
$saturdays->save();
|
|
|
|
$sundays = new TimeslotSetting();
|
|
$sundays->day_index = '6';
|
|
$sundays->save();
|
|
|
|
}
|
|
}
|