This migration adds a nullable 'details' column to the 'detail_dokumen_jaminan' table. The column is used to store custom field data in JSON format. Various parts of the application, including the model, controller, and view, have been updated to handle this new column.
35 lines
1016 B
PHP
35 lines
1016 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Models;
|
|
|
|
use Modules\Location\Models\City;
|
|
use Modules\Location\Models\District;
|
|
use Modules\Location\Models\Province;
|
|
use Modules\Location\Models\Village;
|
|
use Modules\Lpj\Database\Factories\DokumenJaminanFactory;
|
|
|
|
class DetailDokumenJaminan extends Base
|
|
{
|
|
protected $table = 'detail_dokumen_jaminan';
|
|
protected $fillable = [
|
|
'dokumen_jaminan_id',
|
|
'jenis_legalitas_jaminan_id',
|
|
'name',
|
|
'dokumen_jaminan',
|
|
'keterangan',
|
|
'details',
|
|
'status',
|
|
'authorized_at',
|
|
'authorized_status',
|
|
'authorized_by',
|
|
];
|
|
|
|
public function jenisLegalitasJaminan(){
|
|
return $this->belongsTo(JenisLegalitasJaminan::class, 'jenis_legalitas_jaminan_id', 'id');
|
|
}
|
|
|
|
public function dokumenJaminan(){
|
|
return $this->belongsTo(DokumenJaminan::class, 'dokumen_jaminan_id', 'id');
|
|
}
|
|
}
|