36 lines
663 B
PHP
36 lines
663 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Mapper extends Model
|
|
{
|
|
protected $fillable = [
|
|
'event_id',
|
|
'provider_id',
|
|
'sport_id',
|
|
'tx_id',
|
|
'starttime',
|
|
'group',
|
|
'group_id',
|
|
'group_cc',
|
|
'home',
|
|
'home_id',
|
|
'home_cc',
|
|
'away',
|
|
'away_id',
|
|
'away_cc',
|
|
];
|
|
|
|
public function country_betsapi()
|
|
{
|
|
return $this->belongsTo(Country::class, 'group_cc', 'iso2')->where('is_country', 1)->where('disabled', 0);
|
|
}
|
|
|
|
public function provider()
|
|
{
|
|
return $this->belongsTo(Provider::class);
|
|
}
|
|
}
|