summaryrefslogtreecommitdiff
path: root/app/Rugby/Model/Venue.php
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2020-06-19 02:16:51 +0100
committerFbenas <philbeansburton@gmail.com>2020-06-19 02:16:51 +0100
commitd1fe4536cc039450b540104e382db0d01d5cf886 (patch)
treefd40ab48f79370541f377b59bb381811126485ad /app/Rugby/Model/Venue.php
parentc83e876693bdb71c66418c13f5e09dfdaef24478 (diff)
Initial commit
Diffstat (limited to 'app/Rugby/Model/Venue.php')
-rw-r--r--app/Rugby/Model/Venue.php17
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);
+ }
+}