grapper betsapi
This commit is contained in:
1 parent
406fd26864
commit
a3c9f16550
127 files changed
+158128
-650
No files matched your search
+11
-8
@@ -7,6 +7,13 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Event extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'provider_id',
|
||||
'betsapi_id',
|
||||
'betradar_id',
|
||||
'bet365_id',
|
||||
'_1xbet_id',
|
||||
'bwin_id',
|
||||
'starttime',
|
||||
'sport_id',
|
||||
'country_id',
|
||||
@@ -14,10 +21,6 @@ class Event extends Model
|
||||
'competition_group_id',
|
||||
'home_id',
|
||||
'away_id',
|
||||
'tx_id',
|
||||
'provider_id',
|
||||
'betaid_id',
|
||||
'betradar_id',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
@@ -32,22 +35,22 @@ class Event extends Model
|
||||
|
||||
public function group()
|
||||
{
|
||||
return $this->hasOne(Group::class, 'tx_id', 'group_id');
|
||||
return $this->hasOne(Group::class, 'id', 'group_id');
|
||||
}
|
||||
|
||||
public function competition_group()
|
||||
{
|
||||
return $this->hasOne(CompetitionGroup::class, 'tx_id', 'competition_group_id');
|
||||
return $this->hasOne(CompetitionGroup::class, 'id', 'competition_group_id');
|
||||
}
|
||||
|
||||
public function home()
|
||||
{
|
||||
return $this->hasOne(Element::class, 'tx_id', 'home_id');
|
||||
return $this->hasOne(Element::class, 'id', 'home_id');
|
||||
}
|
||||
|
||||
public function away()
|
||||
{
|
||||
return $this->hasOne(Element::class, 'tx_id', 'away_id');
|
||||
return $this->hasOne(Element::class, 'id', 'away_id');
|
||||
}
|
||||
|
||||
public function multiline_client()
|
||||
|
||||
Reference in new issue
Block a user