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-08-30 13:57:02 +09:00
|
|
|
$sources = ['web', 'csv', 'webhook'];
|
2020-02-18 02:03:49 +09:00
|
|
|
foreach ($sources as $source) {
|
2020-08-30 13:57:02 +09:00
|
|
|
DB::table('ejaculation_sources')->insertOrIgnore(['name' => $source]);
|
2020-02-18 02:03:49 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|