2019-12-01 23:36:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class ClassesTableSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
DB::table('classes')->insert([
|
|
|
|
'subject_id' => 1,
|
|
|
|
'date' => '2019-12-02',
|
2019-12-04 16:55:59 +01:00
|
|
|
'code' => generateRandomString(10)
|
2019-12-01 23:36:12 +01:00
|
|
|
]);
|
|
|
|
|
|
|
|
DB::table('classes')->insert([
|
|
|
|
'subject_id' => 2,
|
|
|
|
'date' => '2019-12-02',
|
2019-12-04 16:55:59 +01:00
|
|
|
'code' => generateRandomString(10)
|
2019-12-01 23:36:12 +01:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|