File: /var/www/html/hrms-production/app/Models/EmployeeCategoryDetail.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EmployeeCategoryDetail extends Model
{
use HasFactory;
protected $table = 'tbl_employee_category_detail';
protected $fillable = [
'id', 'EmployeeId', 'EmployeeCode', 'ReligionId', 'CasteId', 'OtherCasteName', 'BasicCategoryId', 'BasicSubCategory', 'AppointmentCategoryId', 'ParallelReservationId', 'TypeOfHandicap', 'CasteCertificateIssuingOfficer', 'CasteValidityCertificateIssuingCommittee', 'CasteCertificatePath', 'CasteCertificateDate', 'CasteValidityPath', 'CasteValidityCertificateDate', 'OwnerId', 'Status', 'IsDeleted', 'Created_at', 'Created_by', 'Updated_at', 'Updated_by', 'OrgId'
];
function getCreatedByAttribute($value)
{
return ucFirst($value);
}
function getUpdatedByAttribute($value)
{
return ucFirst($value);
}
}