List all paddocks, create new paddock.
All paddocks new paddocks are closed.
This commit is contained in:
18
app/Paddock.php
Normal file
18
app/Paddock.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Paddock extends Model
|
||||
{
|
||||
// Paddocks should be closed by default
|
||||
protected $attributes = array(
|
||||
'isClosed' => TRUE,
|
||||
);
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'isClosed',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user