From 9cd0234665ea66dff172d94b9c1b4cb61b1d25b1 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sun, 21 Jun 2020 17:58:23 +0100 Subject: Improve robustness of all scripts and add more to sync command --- app/Rugby/Model/Tournament.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/Rugby/Model/Tournament.php') 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]; } ); -- cgit v1.2.3