Leave Application Summary Model
For understanding, how the model code works, please refer to country model or company model
Below code create leave application summary model
php artisan make:model LeaveApplicationSummary
We are not storing the value to databse, instead just hold in memory, hence only Model is required.
Model class
Replace model class with below code.
Note: Please use the copy button to copy the source code.
class LeaveApplicationSummary extends Model
{
use HasFactory;
protected $fillable = [
'leaveType',
'entitlement',
'allowNegativeApplication',
'used',
'balance',
];
}