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