tissue/database/seeds/EjaculationSourcesSeeder.php

20 lines
381 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Seeder;
class EjaculationSourcesSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
2020-07-19 23:04:10 +09:00
$sources = ['web', 'csv', 'webhook'];
foreach ($sources as $source) {
2020-07-19 23:04:10 +09:00
DB::table('ejaculation_sources')->insertOrIgnore(['name' => $source]);
}
}
}