- Menambahkan kolom 'label' pada tabel custom_fields. - Menambahkan kolom 'urutan_prioritas' pada tabel custom_fields. - Memperbarui model CustomField untuk menyertakan kolom baru. - Memperbarui form input untuk label dan urutan prioritas di tampilan create dan index. - Menambahkan validasi untuk label dan urutan prioritas di CustomFieldRequest.
27 lines
536 B
PHP
27 lines
536 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
// use Modules\Lpj\Database\Factories\CustomFieldFactory;
|
|
|
|
class customField extends Base
|
|
{
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = [
|
|
'name',
|
|
'type',
|
|
'urutan_prioritas',
|
|
'label'
|
|
];
|
|
|
|
// protected static function newFactory(): CustomFieldFactory
|
|
// {
|
|
// // return CustomFieldFactory::new();
|
|
// }
|
|
}
|