diff options
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]; } ); |