diff options
author | Fbenas <philbeansburton@gmail.com> | 2020-06-21 17:58:23 +0100 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2020-06-21 17:58:23 +0100 |
commit | 9cd0234665ea66dff172d94b9c1b4cb61b1d25b1 (patch) | |
tree | 9cb5d13acbf3c5bb8c842620ceb8a104b41babb7 /app/Rugby/Model/Tournament.php | |
parent | 8d6e8b306d7836e4075a13ad98617bfe5afaa1a0 (diff) |
Diffstat (limited to 'app/Rugby/Model/Tournament.php')
-rw-r--r-- | app/Rugby/Model/Tournament.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Rugby/Model/Tournament.php b/app/Rugby/Model/Tournament.php index 3ab6352..5c81278 100644 --- a/app/Rugby/Model/Tournament.php +++ b/app/Rugby/Model/Tournament.php @@ -12,7 +12,6 @@ class Tournament extends Model use Matchable; protected $table = 'tournaments'; - protected $fillable = ['name']; public function matchableFilters() @@ -25,6 +24,10 @@ class Tournament extends Model return ['date', $value]; } + if ($this->isNumeric($value)) { + return ['number', $value]; + } + return ['string', $value]; } ); |