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/Tournament.php | |
| parent | c83e876693bdb71c66418c13f5e09dfdaef24478 (diff) | |
Initial commit
Diffstat (limited to 'app/Rugby/Model/Tournament.php')
| -rw-r--r-- | app/Rugby/Model/Tournament.php | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/app/Rugby/Model/Tournament.php b/app/Rugby/Model/Tournament.php new file mode 100644 index 0000000..64d9a45 --- /dev/null +++ b/app/Rugby/Model/Tournament.php @@ -0,0 +1,19 @@ +<?php + +namespace App\Rugby\Model; + +use App\Rugby\Model\Match; + +use Illuminate\Database\Eloquent\Model; + +class Tournament extends Model +{ +    protected $table = 'tournaments'; + +    protected $fillable = ['name']; + +    public function matches() +    { +        return $this->belongsToMany(Match::class); +    } +} | 
