Files
nuhodds_fi4/app/Models/Mapper.php
T
2026-01-02 12:20:08 +01:00

38 lines
712 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Mapper extends Model
{
protected $fillable = [
'event_id',
'betradar_id',
'betsapi_id',
'bet365_id',
'sport_id',
'provider_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);
}
}