first change
This commit is contained in:
33
Modules/Admin/app/Models/Holiday.php
Normal file
33
Modules/Admin/app/Models/Holiday.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Admin\Models;
|
||||
|
||||
use App\Traits\CreatedUpdatedBy;
|
||||
use App\Traits\StatusTrait;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Holiday extends Model
|
||||
{
|
||||
use CreatedUpdatedBy, StatusTrait;
|
||||
|
||||
protected $table = 'holidays';
|
||||
protected $primaryKey = "holiday_id";
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'start_date',
|
||||
'end_date',
|
||||
'status',
|
||||
'description',
|
||||
'remarks',
|
||||
'createdBy',
|
||||
'updatedBy',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'start_date' => 'datetime',
|
||||
'end_date' => 'datetime',
|
||||
];
|
||||
|
||||
public $appends = ['status_name'];
|
||||
}
|
Reference in New Issue
Block a user