basic comparatore completed
This commit is contained in:
1 parent
cbdc6aff47
commit
16cc214db6
80 files changed
+2413
-2794
No files matched your search
+9
-1
@@ -13,11 +13,12 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Spatie\Permission\Traits\HasRoles;
|
||||
|
||||
class User extends Authenticatable implements FilamentUser, HasAppAuthentication, HasAppAuthenticationRecovery, HasEmailAuthentication, MustVerifyEmail
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\UserFactory> */
|
||||
use HasFactory, Notifiable;
|
||||
use HasFactory, HasRoles, Notifiable;
|
||||
|
||||
protected $casts = [
|
||||
'bettype_status' => 'json',
|
||||
@@ -36,7 +37,9 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
|
||||
'agb_akzeptiert',
|
||||
'app_verified_at',
|
||||
'bettype_status',
|
||||
'client_id',
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
];
|
||||
|
||||
protected static function newFactory(): Factory
|
||||
@@ -152,6 +155,11 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
|
||||
return $this->belongsTo(Client::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
}
|
||||
|
||||
public function bettype_user()
|
||||
{
|
||||
return $this->hasMany(BettypeUser::class)->where('sport_id', auth()->user()->sport_id);
|
||||
|
||||
Reference in new issue
Block a user