Record paddock state changes

This commit is contained in:
2020-04-17 11:30:44 +02:00
parent b71678bf3b
commit 8a0b9bf776
5 changed files with 85 additions and 1 deletions

View File

@@ -15,4 +15,12 @@ class Paddock extends Model
'name',
'isClosed',
];
/**
* Get the state changes for a paddock
*/
public function state_changes() {
return $this->hasMany('App\PaddockStateChange');
}
}