atcheck/database/seeds/AttendancesTableSeeder.php

31 lines
692 B
PHP
Raw Normal View History

2019-12-01 23:36:12 +01:00
<?php
use Illuminate\Database\Seeder;
class AttendancesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('attendances')->insert([
'classes_id' => 1,
'student_id_number' => '416010',
'student_name' => 'Joanna',
'student_surname' => 'Paliwoda',
'seat_number' => 13
]);
DB::table('attendances')->insert([
'classes_id' => 1,
'student_id_number' => '416111',
'student_name' => 'Piotr',
'student_surname' => 'Nowak',
'seat_number' => 6
]);
}
}