Membuat Seeders di Module LPJ part 1
This commit is contained in:
158
database/seeders/DebitureSeeder.php
Normal file
158
database/seeders/DebitureSeeder.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\Lpj\Models\Debiture;
|
||||
|
||||
class DebitureSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Debiture::insert([
|
||||
[
|
||||
'branch_id' => 1,
|
||||
'cif' => '1234567890',
|
||||
'name' => 'Willy',
|
||||
'npwp' => '123455432109876',
|
||||
'email' => 'w@gmail.com',
|
||||
'phone' => '08113242341',
|
||||
'nomor_rekening' => '1081666666',
|
||||
'province_code' => '31',
|
||||
'city_code' => '31.74',
|
||||
'district_code' => '31.74.09',
|
||||
'village_code' => '31.74.09.1003',
|
||||
'postal_code' => '12630',
|
||||
'address' => null,
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1
|
||||
],
|
||||
[
|
||||
'branch_id' => 1,
|
||||
'cif' => '0987654321',
|
||||
'name' => 'Antonius Ginting',
|
||||
'npwp' => '234567890123456',
|
||||
'email' => 'x@gmail.com',
|
||||
'phone' => '081234567891',
|
||||
'nomor_rekening' => '987654310',
|
||||
'province_code' => '31',
|
||||
'city_code' => '31.71',
|
||||
'district_code' => '31.71.06',
|
||||
'village_code' => '31.71.06.1001',
|
||||
'postal_code' => '10310',
|
||||
'address' => 'Jl. Menteng Tengah No.66',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1
|
||||
],
|
||||
[
|
||||
'branch_id' => 1,
|
||||
'cif' => '1518467',
|
||||
'name' => 'PT ABCD SEJATI',
|
||||
'npwp' => '00185260002',
|
||||
'email' => 'abcd@ag.co.id',
|
||||
'phone' => '081111555',
|
||||
'nomor_rekening' => '0082346',
|
||||
'province_code' => '31',
|
||||
'city_code' => '31.74',
|
||||
'district_code' => '31.74.04',
|
||||
'village_code' => '31.74.04.1005',
|
||||
'postal_code' => '10420',
|
||||
'address' => 'Jl. Raya Kwitang No. 105, Senen, Kwitang, Jakarta Pusat',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1
|
||||
],
|
||||
[
|
||||
'branch_id' => 1,
|
||||
'cif' => '12345',
|
||||
'name' => 'Testing',
|
||||
'npwp' => '1029280183912111',
|
||||
'email' => 'testing@email.com',
|
||||
'phone' => '098172386',
|
||||
'nomor_rekening' => '12345',
|
||||
'province_code' => '11',
|
||||
'city_code' => '11.01',
|
||||
'district_code' => '11.01.01',
|
||||
'village_code' => '11.01.01.2001',
|
||||
'postal_code' => '23773',
|
||||
'address' => 'alamat',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1
|
||||
],
|
||||
[
|
||||
'branch_id' => 1,
|
||||
'cif' => '0000000000',
|
||||
'name' => 'Gartika Pertiwi',
|
||||
'npwp' => '123456789101112',
|
||||
'email' => 'Gartika_Pertiwi@gmail.com',
|
||||
'phone' => '1234567',
|
||||
'nomor_rekening' => '1234567',
|
||||
'province_code' => '31',
|
||||
'city_code' => '31.71',
|
||||
'district_code' => '31.71.04',
|
||||
'village_code' => '31.71.04.1005',
|
||||
'postal_code' => '10420',
|
||||
'address' => null,
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1
|
||||
],
|
||||
[
|
||||
'branch_id' => 1,
|
||||
'cif' => '1235464575',
|
||||
'name' => 'Fleming',
|
||||
'npwp' => '123455432109876',
|
||||
'email' => 'x@gmail.com',
|
||||
'phone' => '08113242341',
|
||||
'nomor_rekening' => '1081666666',
|
||||
'province_code' => '31',
|
||||
'city_code' => '31.74',
|
||||
'district_code' => '31.74.09',
|
||||
'village_code' => '31.74.09.1001',
|
||||
'postal_code' => '12620',
|
||||
'address' => 'testt',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'created_by' => 1,
|
||||
'updated_by' => 1
|
||||
],
|
||||
[
|
||||
'branch_id' => 1,
|
||||
'cif' => '1234689743',
|
||||
'name' => 'Testing 2',
|
||||
'npwp' => '1234689743418451',
|
||||
'email' => 'testing@mail.com',
|
||||
'phone' => '081385777611',
|
||||
'nomor_rekening' => '3575467279562',
|
||||
'province_code' => '31',
|
||||
'city_code' => '31.71',
|
||||
'district_code' => '31.71.06',
|
||||
'village_code' => '31.71.06.1001',
|
||||
'postal_code' => '10310',
|
||||
'address' => 'Jl. Menteng Raya no. 13',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'created_by' => 3,
|
||||
'updated_by' => 3
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user