supervisor resource wip

This commit is contained in:
salam committed 2025-08-25 09:26:04 +02:00
1 parent 769fbc242c
commit 944aa736b2
8 files changed
+45 -92

No files matched your search

+12 -11
View File
@@ -7,21 +7,17 @@ use Illuminate\Database\Eloquent\Model;
class Supervisor extends Model
{
protected $fillable = [
'code',
'command',
'process',
'description',
'name',
'provider_id',
'sport_id',
'client_id',
'bookmaker_id',
'is_active',
'has_log',
'sleep',
'limit',
'multi',
'command',
'runtime',
'events',
'lastcall',
'is_cron',
'is_active',
];
public function sport()
@@ -31,11 +27,16 @@ class Supervisor extends Model
public function bookmaker()
{
return $this->belongsTo(Bookmaker::class, 'bookmaker_id');
return $this->belongsTo(Bookmaker::class);
}
public function customer()
{
return $this->belongsTo(Customer::class, 'client_id');
return $this->belongsTo(Customer::class);
}
public function provider()
{
return $this->belongsTo(Provider::class);
}
}