renewd grapper wip
This commit is contained in:
1 parent
8f1aeafe46
commit
4afe60a957
55 files changed
+1389
-823
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ class OddsTotalQ1 extends Model
|
||||
'bmoid',
|
||||
'over',
|
||||
'under',
|
||||
'spread',
|
||||
'total',
|
||||
'difference',
|
||||
'active_spread',
|
||||
'margin',
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user