fix
This commit is contained in:
parent
8daad8f8b8
commit
7456fc1ac7
@ -14,10 +14,12 @@ class PrivateKey extends BaseModel
|
||||
protected $hidden = [
|
||||
'private_key',
|
||||
];
|
||||
static public function ownedByCurrentTeam()
|
||||
static public function ownedByCurrentTeam(array $select = ['*'])
|
||||
{
|
||||
return PrivateKey::whereTeamId(session('currentTeam')->id);
|
||||
$selectArray = collect($select)->concat(['id']);
|
||||
return PrivateKey::whereTeamId(session('currentTeam')->id)->where('id', '>', 0)->select($selectArray->all());
|
||||
}
|
||||
|
||||
public function servers()
|
||||
{
|
||||
return $this->hasMany(Server::class);
|
||||
|
Loading…
Reference in New Issue
Block a user