31 lines
544 B
PHP
31 lines
544 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ComparingBookmaker extends Model
|
|
{
|
|
protected $fillable = [
|
|
'method_id',
|
|
'sport_id',
|
|
'bookmaker_id',
|
|
'client_bookmaker_id',
|
|
'time_lastcheck',
|
|
'margin_threshold',
|
|
'is_active',
|
|
'is_hidden',
|
|
'sorting',
|
|
];
|
|
|
|
public function bookmaker()
|
|
{
|
|
return $this->belongsTo(Bookmaker::class);
|
|
}
|
|
|
|
public function sport()
|
|
{
|
|
return $this->belongsTo(Sport::class);
|
|
}
|
|
}
|