Files
nuhodds_fi4/app/Models/Multiline.php
T
2025-12-12 16:30:00 +01:00

38 lines
663 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Multiline extends Model
{
protected $fillable = [
'client_id',
'sport_id',
'bettype_id',
'matchpart_id',
'bookmaker_id',
'sort',
];
public function sport()
{
return $this->belongsTo(Sport::class);
}
public function matchpart()
{
return $this->belongsTo(Matchpart::class);
}
public function bettype()
{
return $this->belongsTo(Bettype::class);
}
public function bookmaker()
{
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
}
}