42 lines
962 B
PHP
42 lines
962 B
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();
|
|
}
|
|
}
|