lpj/app/Models/KJPP.php

33 lines
768 B
PHP
Raw Normal View History

<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
// use Modules\Lpj\Database\Factories\KJPPFactory;
class KJPP extends Model
{
use HasFactory;
// Define the table if not using default table naming
protected $table = 'kjpp';
/**
* The attributes that are mass assignable.
*/
protected $guarded = ['id'];
// If you're using JSON columns, you may want to cast them properly
protected $casts = [
'jenis_usaha' => 'array',
'pengalaman' => 'array',
'kerjasama_sejak' => 'date', // For date fields
];
// protected static function newFactory(): KJPPFactory
// {
// //return KJPPFactory::new();
// }
}