wip matches
This commit is contained in:
1 parent
adb15e701b
commit
7116d3c576
33 files changed
+379
-176
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Element extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'sport_id',
|
||||
'txodds_id',
|
||||
'betsapi_id',
|
||||
'mag_id',
|
||||
'log_id',
|
||||
];
|
||||
}
|
||||
+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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Liga extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'sport_id',
|
||||
'country_id',
|
||||
'txodds_id',
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user