fix devops error
This commit is contained in:
@@ -9,13 +9,13 @@ class Team extends LaratrustTeam
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $connection = 'mysql';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $connection = 'mysql';
|
||||
|
||||
public function users()
|
||||
{
|
||||
return $this->hasMany(\App\Models\Core\Auth\User::class);
|
||||
return $this->hasMany(User::class);
|
||||
}
|
||||
|
||||
public function scopeActive($query)
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Core\Auth;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserClient extends Model
|
||||
{
|
||||
protected $connection = 'system';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function client()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Partner\Client');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\Models\User');
|
||||
}
|
||||
|
||||
public function scopeByClient($query, $id)
|
||||
{
|
||||
return $query->where('client_id', $id);
|
||||
}
|
||||
|
||||
public function scopeByUser($query, $id)
|
||||
{
|
||||
return $query->where('user_id', $id);
|
||||
}
|
||||
}
|
||||
@@ -6,14 +6,14 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserStatus extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $connection = 'mysql';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $table = 'user_statuses';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function scopeByName($query, $name)
|
||||
{
|
||||
return $query->where('name', $name);
|
||||
|
||||
@@ -6,22 +6,22 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserStatusTeam extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $connection = 'mysql';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $table = 'user_status_teams';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function user_status()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\Core\Auth\UserStatus::class);
|
||||
return $this->belongsTo(UserStatus::class);
|
||||
}
|
||||
|
||||
public function team()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\Core\Auth\Team::class);
|
||||
return $this->belongsTo(Team::class);
|
||||
}
|
||||
|
||||
public function scopeByUserStatus($query, $id)
|
||||
|
||||
Reference in New Issue
Block a user