2020-08-05 07:43:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class ContactSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
$contactdata = [
|
|
|
|
[
|
|
|
|
'contactname' => "Claus Trasbo",
|
|
|
|
'email' => "ctr@sde.dk",
|
|
|
|
'title' => "Forstander for Erhvervskollegiet",
|
|
|
|
'phone' => "40886515",
|
|
|
|
'phonetimes' => "",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'contactname' => "Birgitte True",
|
|
|
|
'email' => "bit@sde.dk",
|
2020-08-05 09:14:30 +00:00
|
|
|
'title' => "Erhverskollegie Sekretær",
|
2020-08-05 11:29:45 +00:00
|
|
|
'phone' => "63126715",
|
2020-08-05 07:43:39 +00:00
|
|
|
'phonetimes' => "<p><strong>Mandag-Torsdag:</strong> 8.00-15.00<br><strong>Fredag:</strong> 8.00-12.00</p>",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'contactname' => "Thomas Thomsen",
|
|
|
|
'email' => "thth@sde.dk",
|
|
|
|
'title' => "Kollegieassistent",
|
2020-08-10 10:07:41 +00:00
|
|
|
'phone' => null,
|
2020-08-05 07:43:39 +00:00
|
|
|
'phonetimes' => "",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'contactname' => "Anja Holm Brix",
|
|
|
|
'email' => "ahb@sde.dk",
|
|
|
|
'title' => "Kollegieassistent",
|
2020-08-10 10:07:41 +00:00
|
|
|
'phone' => null,
|
2020-08-05 07:43:39 +00:00
|
|
|
'phonetimes' => "",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'contactname' => "Britta Overgaard Brink Olsen",
|
|
|
|
'email' => "brio@sde.dk",
|
|
|
|
'title' => "Kollegieassistent",
|
2020-08-10 10:07:41 +00:00
|
|
|
'phone' => null,
|
2020-08-05 07:43:39 +00:00
|
|
|
'phonetimes' => "",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'contactname' => "Jesper Sandberg",
|
|
|
|
'email' => "jesa@sde.dk",
|
|
|
|
'title' => "Kollegieassistent",
|
2020-08-10 10:07:41 +00:00
|
|
|
'phone' => null,
|
2020-08-05 07:43:39 +00:00
|
|
|
'phonetimes' => "",
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
foreach ($contactdata as $data) {
|
|
|
|
$contact = new \App\Contact();
|
|
|
|
|
|
|
|
$contact->contactname = $data["contactname"];
|
|
|
|
$contact->email = $data["email"];
|
|
|
|
$contact->title = $data["title"];
|
|
|
|
$contact->phone = $data["phone"];
|
|
|
|
$contact->phonetimes = $data["phonetimes"];
|
|
|
|
|
|
|
|
$contact->save();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|