mapper wip
This commit is contained in:
1 parent
16cc214db6
commit
d635ebe563
38 files changed
+98
-680
No files matched your search
@@ -46,7 +46,6 @@ class EventResource extends Resource
|
||||
public static function getNavigationBadge(): ?string
|
||||
{
|
||||
return parent::getEloquentQuery()
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->where('starttime', '>', Carbon::now())
|
||||
->count();
|
||||
}
|
||||
@@ -54,7 +53,6 @@ class EventResource extends Resource
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getEloquentQuery()
|
||||
->where('starttime', '>', Carbon::now())
|
||||
->where('sport_id', auth()->user()->sport_id);
|
||||
->where('starttime', '>', Carbon::now());
|
||||
}
|
||||
}
|
||||
@@ -110,7 +110,7 @@ class EventsTable
|
||||
|
||||
public static function load_bettype_settings()
|
||||
{
|
||||
self::$bettype_settings = BettypeUser::where('user_id', auth()->user()->id)->where('sport_id', auth()->user()->sport_id)->where('is_active', 1)->pluck('multiline_setting_id')->toArray();
|
||||
self::$bettype_settings = BettypeUser::where('is_active', 1)->pluck('multiline_setting_id')->toArray();
|
||||
}
|
||||
|
||||
public static function configure(Table $table): Table
|
||||
|
||||
Reference in new issue
Block a user