wip matches
This commit is contained in:
1 parent
adb15e701b
commit
7116d3c576
33 files changed
+379
-176
No files matched your search
+35
-1
@@ -6,5 +6,39 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Event extends Model
|
||||
{
|
||||
//
|
||||
protected $fillable = [
|
||||
'starttime',
|
||||
'sport_id',
|
||||
'provider_id',
|
||||
'txodds_id',
|
||||
'betaid_id',
|
||||
'betradar_id',
|
||||
'magnig_id',
|
||||
'magken_id',
|
||||
'lognig_id',
|
||||
'logcol_id',
|
||||
'liga_id',
|
||||
'home_id',
|
||||
'away_id',
|
||||
];
|
||||
|
||||
public function home()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function away()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function liga()
|
||||
{
|
||||
return $this->belongsTo(Liga::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user