renewd grapper wip

This commit is contained in:
salam committed 2026-01-19 18:36:07 +01:00
1 parent 8f1aeafe46
commit 4afe60a957
55 files changed
+1389 -823

No files matched your search

+4 -4
View File
@@ -28,10 +28,10 @@ class Event extends Model
'away_id',
];
protected static function booted(): void
{
static::addGlobalScope(new SportScope);
}
// protected static function booted(): void
// {
// static::addGlobalScope(new SportScope);
// }
public function provider()
{
+1 -1
View File
@@ -23,7 +23,7 @@ class OddsTotalQ1 extends Model
'bmoid',
'over',
'under',
'spread',
'total',
'difference',
'active_spread',
'margin',
+5
View File
@@ -156,6 +156,11 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
return $this->belongsTo(Bookmaker::class);
}
public function sport()
{
return $this->belongsTo(Sport::class);
}
public function bettype_user()
{
return $this->hasMany(BettypeUser::class)->where('sport_id', auth()->user()->sport_id);