wip del err
This commit is contained in:
1 parent
812736ca9a
commit
9bcd4432c6
1210 files changed
-220941
No files matched your search
@@ -1,49 +0,0 @@
|
||||
<?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',
|
||||
'country',
|
||||
'country_id',
|
||||
'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 country_magloo()
|
||||
{
|
||||
return $this->belongsTo(Country::class, 'country', 'name');
|
||||
}
|
||||
|
||||
public function provider()
|
||||
{
|
||||
return $this->belongsTo(Provider::class);
|
||||
}
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class)->where('is_active', 1);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user