31 lines
580 B
PHP
31 lines
580 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class LatePeriodFine extends Model
|
|
{
|
|
protected $fillable = [
|
|
'user_identity',
|
|
'period_type',
|
|
'period_start',
|
|
'period_end',
|
|
'late_minutes',
|
|
'allowance_minutes',
|
|
'fine_minutes',
|
|
'fine_amount',
|
|
'daily_fine_amount',
|
|
'weekly_fine_amount',
|
|
'total_fine_amount',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'period_start' => 'date',
|
|
'period_end' => 'date',
|
|
];
|
|
}
|
|
}
|