Init commit
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Models\Setting;
|
||||
|
||||
class SettingsSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$settings = [
|
||||
[
|
||||
'key' => 'admin_notification_email',
|
||||
'value' => 'admin@fietservice.nl',
|
||||
'description' => 'E-mailadres voor beheerder notificaties wanneer nieuwe service aanvragen worden ingediend'
|
||||
],
|
||||
[
|
||||
'key' => 'business_name',
|
||||
'value' => 'Fiets Service Centrum',
|
||||
'description' => 'Naam van het fiets service bedrijf'
|
||||
],
|
||||
[
|
||||
'key' => 'business_address',
|
||||
'value' => 'Hoofdstraat 123, Amsterdam, Nederland',
|
||||
'description' => 'Bedrijfsadres van het fiets service centrum'
|
||||
],
|
||||
[
|
||||
'key' => 'business_phone',
|
||||
'value' => '+31 (0)20 123 4567',
|
||||
'description' => 'Bedrijfstelefoonnummer'
|
||||
],
|
||||
[
|
||||
'key' => 'working_hours',
|
||||
'value' => 'Maandag-Vrijdag: 08:00 - 18:00, Zaterdag: 09:00 - 16:00',
|
||||
'description' => 'Bedrijfsopeningstijden'
|
||||
]
|
||||
];
|
||||
|
||||
foreach ($settings as $setting) {
|
||||
Setting::updateOrCreate(
|
||||
['key' => $setting['key']],
|
||||
$setting
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user