Membuat Seeders di Module LPJ part 1

This commit is contained in:
2024-10-29 17:39:51 +07:00
parent 70f6b36e0b
commit 5d974d7c56
20 changed files with 1356 additions and 11 deletions

View File

@@ -0,0 +1,66 @@
<?php
namespace Modules\Lpj\Database\Seeders;
use Illuminate\Database\Seeder;
use Modules\Lpj\Models\DokumenJaminan;
class DokumenJaminanSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DokumenJaminan::insert([
[
'debiture_id' => 1,
'jenis_jaminan_id' => 1,
'pemilik_jaminan_id' => 3,
'province_code' => '32',
'city_code' => '32.75',
'district_code' => '32.75.03',
'village_code' => '32.75.03.1001',
'postal_code' => '17125',
'address' => 'Jl. Apel No. 9',
'status' => 1,
'created_at' => now(),
'updated_at' => now(),
'created_by' => 2,
'updated_by' => 2
],
[
'debiture_id' => 4,
'jenis_jaminan_id' => 1,
'pemilik_jaminan_id' => 4,
'province_code' => '16',
'city_code' => '16.05',
'district_code' => '16.05.03',
'village_code' => '16.05.03.2002',
'postal_code' => '31663',
'address' => 'alamat',
'status' => 1,
'created_at' => now(),
'updated_at' => now(),
'created_by' => 2,
'updated_by' => 2
],
[
'debiture_id' => 7,
'jenis_jaminan_id' => 4,
'pemilik_jaminan_id' => 5,
'province_code' => '13',
'city_code' => '13.72',
'district_code' => '13.72.02',
'village_code' => '13.72.02.1001',
'postal_code' => '27323',
'address' => 'Jl. Merdeka II no. 1',
'status' => 1,
'created_at' => now(),
'updated_at' => now(),
'created_by' => 2,
'updated_by' => 2
]
]);
}
}