%PDF- %PDF-
Direktori : /var/www/html/hrsys/api/app/Models/ |
Current File : /var/www/html/hrsys/api/app/Models/AnnualLeaveTransaction.php |
<?php namespace App\Models; /** * @property integer id * @property string type * @property string notes * @property float quantity * @property integer annual_leave_id * @property mixed expires_at * @property AnnualLeave annualLeave */ class AnnualLeaveTransaction extends BaseModel { const ADD = 'ADD'; const REMOVE = 'REMOVE'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'quantity', 'type', 'notes', 'expires_at', ]; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'id' => 'integer', 'type' => 'string', 'notes' => 'string', 'quantity' => 'float', 'annual_leave_id' => 'integer', 'user_id' => 'integer', ]; public function annualLeave() { return $this->belongsTo(AnnualLeave::class); } }