ldc-boutique-cnc/database/seeders/SettingsSeeder.php

52 lines
1.3 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\Setting;
use Illuminate\Database\Seeder;
class SettingsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$hasCosts = new Setting();
$hasCosts->key = "has_costs";
$hasCosts->value = "0";
$hasCosts->save();
$costs = new Setting();
$costs->key = "costs";
$costs->value = "0.00";
$costs->save();
$hasPayment = new Setting();
$hasPayment->key = "has_payment";
$hasPayment->value = "0";
$hasPayment->save();
$qrCode = new Setting();
$qrCode->key = "qr_code";
$qrCode->value = "0";
$qrCode->save();
$orderWithdrawalPeriod = new Setting();
$orderWithdrawalPeriod->key = "order_withdrawal_period";
$orderWithdrawalPeriod->value = "0";
$orderWithdrawalPeriod->save();
$sendContactMailTo = new Setting();
$sendContactMailTo->key = "send_contact_mail_to";
$sendContactMailTo->value = config('mail.from.address');
$sendContactMailTo->save();
$sendOrderMailTo = new Setting();
$sendOrderMailTo->key = "send_order_confirm_mail_to";
$sendOrderMailTo->value = config('mail.from.address');
$sendOrderMailTo->save();
}
}