2019-12-01 23:36:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class SubjectsTableSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
DB::table('subjects')->insert([
|
2020-03-04 14:16:35 +01:00
|
|
|
'name' => 'Przedmiot 1',
|
2019-12-06 22:34:25 +01:00
|
|
|
'weekday' => 'Poniedziałek',
|
2019-12-01 23:36:12 +01:00
|
|
|
'time' => '15:30',
|
2019-12-09 12:17:23 +01:00
|
|
|
'room_id' => 1,
|
2020-03-04 14:16:35 +01:00
|
|
|
'user_id' => 1
|
2019-12-01 23:36:12 +01:00
|
|
|
]);
|
|
|
|
|
|
|
|
DB::table('subjects')->insert([
|
2020-03-04 14:16:35 +01:00
|
|
|
'name' => 'Przedmiot 2',
|
2019-12-06 22:34:25 +01:00
|
|
|
'weekday' => 'Wtorek',
|
2019-12-01 23:36:12 +01:00
|
|
|
'time' => '17:15',
|
2020-03-04 14:16:35 +01:00
|
|
|
'room_id' => 6,
|
|
|
|
'user_id' => 1
|
|
|
|
]);
|
|
|
|
|
|
|
|
DB::table('subjects')->insert([
|
|
|
|
'name' => 'Przedmiot 3',
|
|
|
|
'weekday' => 'Środa',
|
|
|
|
'time' => '17:15',
|
|
|
|
'room_id' => 23,
|
|
|
|
'user_id' => 1
|
|
|
|
]);
|
|
|
|
|
|
|
|
DB::table('subjects')->insert([
|
|
|
|
'name' => 'Przedmiot 4',
|
|
|
|
'weekday' => 'Czwartek',
|
|
|
|
'time' => '17:15',
|
|
|
|
'room_id' => 45,
|
|
|
|
'user_id' => 1
|
|
|
|
]);
|
|
|
|
|
|
|
|
DB::table('subjects')->insert([
|
|
|
|
'name' => 'Przedmiot 5',
|
|
|
|
'weekday' => 'Piątek',
|
|
|
|
'time' => '17:15',
|
|
|
|
'room_id' => 47,
|
|
|
|
'user_id' => 1
|
2019-12-01 23:36:12 +01:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|