eOSP2/app/operations.php

19 lines
414 B
PHP
Raw Normal View History

2019-11-23 15:01:59 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;
2019-11-23 15:01:59 +01:00
class operations extends Model
{
//
protected $primaryKey = 'id';
protected $fillable = ['fireStationID', 'operationDate', 'location', 'target', 'dangerType', 'description', 'commanderID'];
public function getFromOperationsAttribute($value){
return \Carbon\Carbon::parse($value)->format('d-m-Y');
}
2019-11-23 15:01:59 +01:00
}