tissue/database/seeds/EjaculationSourcesSeeder.php
2020-08-30 13:57:02 +09:00

20 lines
381 B
PHP

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