| 1 | <?php |
||
| 9 | class Record extends Model |
||
| 10 | { |
||
| 11 | protected $table = 'records'; |
||
| 12 | |||
| 13 | public $primaryKey = 'id'; |
||
| 14 | |||
| 15 | public $guarded = ['id']; |
||
| 16 | |||
| 17 | public $timestamps = true; |
||
| 18 | |||
| 19 | protected $dates = [ |
||
| 20 | 'time_from', |
||
| 21 | 'time_to', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | public function recordable() : MorphTo |
||
| 28 | |||
| 29 | public function getDeductableHours() |
||
| 37 | |||
| 38 | public function getRecordableHours() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Create a new Eloquent Collection instance. |
||
| 53 | * |
||
| 54 | * @param array $models |
||
| 55 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 56 | */ |
||
| 57 | public function newCollection(array $models = []) |
||
| 61 | } |
||
| 62 |