2020-02-18 02:03:49 +09:00
|
|
|
<?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'];
|
2020-02-18 02:03:49 +09:00
|
|
|
foreach ($sources as $source) {
|
2020-07-19 23:04:10 +09:00
|
|
|
DB::table('ejaculation_sources')->insertOrIgnore(['name' => $source]);
|
2020-02-18 02:03:49 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|