This commit introduces seeders for various entities in the database, including HubunganPemilikJaminan, JenisFasilitasKredit, and others. These seeders populate the database with initial data for testing and development purposes.
40 lines
923 B
PHP
40 lines
923 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Modules\Lpj\Models\IjinUsaha;
|
|
|
|
class IjinUsahaSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
IjinUsaha::insert([
|
|
[
|
|
'code' => 'IU001',
|
|
'name' => 'Bisnis',
|
|
'status' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'code' => 'IU002',
|
|
'name' => 'Properti',
|
|
'status' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'code' => 'IU003',
|
|
'name' => 'Personal Properti',
|
|
'status' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]
|
|
]);
|
|
}
|
|
}
|