2020-11-05 09:36:13 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
2021-03-17 09:28:02 +01:00
|
|
|
use App\Models\Setting;
|
2020-11-05 09:36:13 +01:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
|
|
class SettingsSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the database seeds.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function run()
|
|
|
|
|
{
|
2021-03-17 09:28:02 +01:00
|
|
|
$hasCosts = new Setting();
|
2020-11-05 09:36:13 +01:00
|
|
|
$hasCosts->key = "has_costs";
|
|
|
|
|
$hasCosts->value = "0";
|
|
|
|
|
$hasCosts->save();
|
|
|
|
|
|
2021-03-17 09:28:02 +01:00
|
|
|
$costs = new Setting();
|
2020-11-05 09:36:13 +01:00
|
|
|
$costs->key = "costs";
|
|
|
|
|
$costs->value = "0.00";
|
|
|
|
|
$costs->save();
|
|
|
|
|
|
2021-03-17 09:28:02 +01:00
|
|
|
$hasPayment = new Setting();
|
2020-11-05 09:36:13 +01:00
|
|
|
$hasPayment->key = "has_payment";
|
|
|
|
|
$hasPayment->value = "0";
|
|
|
|
|
$hasPayment->save();
|
|
|
|
|
|
2021-03-17 09:28:02 +01:00
|
|
|
$qrCode = new Setting();
|
2020-11-05 09:36:13 +01:00
|
|
|
$qrCode->key = "qr_code";
|
|
|
|
|
$qrCode->value = "0";
|
|
|
|
|
$qrCode->save();
|
|
|
|
|
|
2021-03-17 09:28:02 +01:00
|
|
|
$orderWithdrawalPeriod = new Setting();
|
2020-11-05 09:36:13 +01:00
|
|
|
$orderWithdrawalPeriod->key = "order_withdrawal_period";
|
|
|
|
|
$orderWithdrawalPeriod->value = "0";
|
|
|
|
|
$orderWithdrawalPeriod->save();
|
|
|
|
|
}
|
|
|
|
|
}
|