wip
This commit is contained in:
1 parent
45cd621cf7
commit
d317c733b9
13 files changed
+142
-58
No files matched your search
@@ -53,12 +53,12 @@ class EventResource extends Resource
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
$query = parent::getEloquentQuery()
|
||||
->where('starttime', '>', Carbon::now())
|
||||
->with('competition_group')
|
||||
->with('country')
|
||||
->with('home')
|
||||
->with('away')
|
||||
->with('event_user_star');
|
||||
->with('event_user_star')
|
||||
->where('starttime', '>=', now());
|
||||
|
||||
if (auth()->user()->stars) {
|
||||
$query->whereHas('event_user_star');
|
||||
|
||||
Reference in new issue
Block a user