Multiline Setting compleated
This commit is contained in:
1 parent
c6fd66189b
commit
bb71c4b406
14 files changed
+129
-68
No files matched your search
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Scopes\ClientScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MultilineClient extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'client_id',
|
||||
'sport_id',
|
||||
'multiline_setting_id',
|
||||
'disabled',
|
||||
'bookmaker_id',
|
||||
'sort',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function multiline_setting()
|
||||
{
|
||||
return $this->belongsTo(MultilineSetting::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||
}
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new ClientScope);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user