mirror of
https://github.com/ConjureETS/Interface-Admin.git
synced 2026-03-24 12:31:07 +00:00
27 lines
535 B
PHP
27 lines
535 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class CommunicationMethodTableSeeder extends Seeder
|
|
{
|
|
private $data =[
|
|
"Discord", "Facebook", "E-Mail", "Autre"
|
|
];
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('communication_methods')->truncate();
|
|
|
|
foreach($this->data as $value) {
|
|
DB::table('communication_methods')->insert([
|
|
'name' => $value,
|
|
]);
|
|
}
|
|
}
|
|
}
|