42 lines
706 B
PHP
42 lines
706 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Supervisor extends Model
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
'provider_id',
|
|
'sport_id',
|
|
'sleep',
|
|
'limit',
|
|
'runtime',
|
|
'maxsconds',
|
|
'lastcall',
|
|
'is_cron',
|
|
'is_active',
|
|
];
|
|
|
|
public function sport()
|
|
{
|
|
return $this->belongsTo(Sport::class);
|
|
}
|
|
|
|
public function bookmaker()
|
|
{
|
|
return $this->belongsTo(Bookmaker::class);
|
|
}
|
|
|
|
public function customer()
|
|
{
|
|
return $this->belongsTo(Customer::class);
|
|
}
|
|
|
|
public function provider()
|
|
{
|
|
return $this->belongsTo(Provider::class);
|
|
}
|
|
}
|