diff options
author | Fbenas <philbeansburton@gmail.com> | 2020-06-19 02:16:51 +0100 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2020-06-19 02:16:51 +0100 |
commit | d1fe4536cc039450b540104e382db0d01d5cf886 (patch) | |
tree | fd40ab48f79370541f377b59bb381811126485ad /app/Rugby/Model/Venue.php | |
parent | c83e876693bdb71c66418c13f5e09dfdaef24478 (diff) |
Initial commit
Diffstat (limited to 'app/Rugby/Model/Venue.php')
-rw-r--r-- | app/Rugby/Model/Venue.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Rugby/Model/Venue.php b/app/Rugby/Model/Venue.php new file mode 100644 index 0000000..be85c23 --- /dev/null +++ b/app/Rugby/Model/Venue.php @@ -0,0 +1,17 @@ +<?php + +namespace App\Rugby\Model; + +use App\Rugby\Model\Match; + +use Illuminate\Database\Eloquent\Model; + +class Venue extends Model +{ + protected $fillable = ['name', 'city']; + + public function matches() + { + return $this->belongsToMany(Match::class); + } +} |