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.
33 lines
722 B
PHP
33 lines
722 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Modules\Lpj\Models\JenisLaporan;
|
|
|
|
class JenisLaporanSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
JenisLaporan::insert([
|
|
[
|
|
'code' => 'JL001',
|
|
'name' => 'Short Report',
|
|
'status' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'code' => 'JL002',
|
|
'name' => 'Full Report',
|
|
'status' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]
|
|
]);
|
|
}
|
|
}
|