List all paddocks, create new paddock.

All paddocks new paddocks are closed.
This commit is contained in:
2020-04-17 09:08:22 +02:00
parent dcd75c3358
commit cf6d0ab467
7 changed files with 217 additions and 1 deletions

18
app/Paddock.php Normal file
View 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',
];
}