24 lines
460 B
PHP
24 lines
460 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
/** The wounded of one battle in a village's hospital; they stand again at heals_at. */
|
||
|
|
class Wounded extends Model
|
||
|
|
{
|
||
|
|
protected $table = 'wounded';
|
||
|
|
|
||
|
|
protected $guarded = [];
|
||
|
|
|
||
|
|
protected $dateFormat = 'Y-m-d H:i:s.v';
|
||
|
|
|
||
|
|
protected function casts(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'units' => 'array',
|
||
|
|
'heals_at' => 'immutable_datetime',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|