Ich Ich, gros commit
This commit is contained in:
29
database/seeds/RaceTableSeeder.php
Normal file
29
database/seeds/RaceTableSeeder.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Race;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class RaceTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
Race::create([
|
||||
'name' => 'Course 24h',
|
||||
'start_date' => Carbon::now(),
|
||||
'end_date' => Carbon::now(),
|
||||
'duration' => 24,
|
||||
'autonomie_kart_sec' => 120,
|
||||
'autonomie_kart_humide' => 200,
|
||||
'relay_default_duration' => 45,
|
||||
'stand_duration' => '60',
|
||||
'comment' => 'Top',
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user