wip
This commit is contained in:
1 parent
e923508630
commit
2f881200e2
1 file changed
+1
-1
@@ -218,7 +218,7 @@ class EventsTable
|
|||||||
->options(function () {
|
->options(function () {
|
||||||
$res = Event::where('sport_id', self::$user->sport_id)->where('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country_id')->toArray();
|
$res = Event::where('sport_id', self::$user->sport_id)->where('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country_id')->toArray();
|
||||||
|
|
||||||
return Country::query()->whereIn('id', $res)->pluck('name', 'id');
|
return Country::query()->whereIn('id', $res)->orderBy('name')->pluck('name', 'id');
|
||||||
})
|
})
|
||||||
->live()
|
->live()
|
||||||
->reactive()
|
->reactive()
|
||||||
|
|||||||
Reference in new issue
Block a user