Record paddock state changes
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user