43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\System\Settings\Payments\PaymentType;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class PaymentTypeTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
collect([
|
|
[
|
|
'id' => 1,
|
|
'code' => 'cash',
|
|
'name' => ['en' => 'Cash', 'tk' => 'Nagt', 'ru' => 'Näliçni'],
|
|
'tax' => 0,
|
|
'is_enabled' => true,
|
|
'options' => null,
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'code' => 'atm',
|
|
'name' => ['en' => 'ATM', 'tk' => 'Terminal', 'ru' => 'ATM'],
|
|
'tax' => 0,
|
|
'is_enabled' => true,
|
|
'options' => null,
|
|
],
|
|
[
|
|
'id' => 3,
|
|
'code' => 'online_halkbank',
|
|
'name' => ['en' => 'Online (halkbank)', 'tk' => 'Onlaýn (halkbank)', 'ru' => 'Onlaýn (halkbank)'],
|
|
'tax' => 0,
|
|
'is_enabled' => true,
|
|
'options' => null,
|
|
],
|
|
])->each(fn ($data) => PaymentType::create($data));
|
|
}
|
|
}
|