ldc-boutique-cnc/database/seeders/SettingsSeeder.php
2021-04-06 12:56:54 +02:00

47 lines
1.1 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();
}
}