This commit is contained in:
Saeed Vaziry
2024-03-24 09:56:34 +01:00
committed by GitHub
parent 884f18db63
commit 4d051330d6
1055 changed files with 14493 additions and 20278 deletions

View File

@ -9,7 +9,6 @@
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Collection;
use Laravel\Fortify\TwoFactorAuthenticatable;
use Laravel\Sanctum\HasApiTokens;
/**
* @property int $id
@ -34,7 +33,6 @@
*/
class User extends Authenticatable
{
use HasApiTokens;
use HasFactory;
use Notifiable;
use TwoFactorAuthenticatable;
@ -86,11 +84,6 @@ public function serverProviders(): HasMany
return $this->hasMany(ServerProvider::class);
}
public function scripts(): HasMany
{
return $this->hasMany(Script::class, 'user_id');
}
public function sourceControl(string $provider): HasOne
{
return $this->hasOne(SourceControl::class)->where('provider', $provider);