atcheck/database/seeds/SubjectsTableSeeder.php

31 lines
653 B
PHP
Raw Normal View History

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([
'name' => 'Systemy Informatyczne UA0',
'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,
2019-12-01 23:36:12 +01:00
'user_id' => 2
]);
DB::table('subjects')->insert([
'name' => 'Systemy Informatyczne UA0',
'weekday' => 'Wtorek',
2019-12-01 23:36:12 +01:00
'time' => '17:15',
2019-12-09 12:17:23 +01:00
'room_id' => 2,
2019-12-01 23:36:12 +01:00
'user_id' => 3
]);
}
}