Multiline Setting compleated
This commit is contained in:
1 parent
c6fd66189b
commit
bb71c4b406
14 files changed
+129
-68
No files matched your search
@@ -5,13 +5,12 @@ namespace App\Models;
|
||||
use App\Models\Scopes\ClientScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Multiline extends Model
|
||||
class MultilineClient extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'client_id',
|
||||
'sport_id',
|
||||
'table',
|
||||
'name',
|
||||
'multiline_setting_id',
|
||||
'disabled',
|
||||
'bookmaker_id',
|
||||
'sort',
|
||||
@@ -22,6 +21,11 @@ class Multiline extends Model
|
||||
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');
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MultilineUser extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'sport_id',
|
||||
'multiline_setting_id',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function multiline_setting()
|
||||
{
|
||||
return $this->belongsTo(MultilineSetting::class);
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,11 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
|
||||
'app_authentication_recovery_codes',
|
||||
];
|
||||
|
||||
public function multiline_user()
|
||||
{
|
||||
return $this->belongsTo(MultilineUser::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user