a lot hehe
This commit is contained in:
@@ -22,16 +22,23 @@ class Server extends BaseModel
|
||||
'port',
|
||||
'team_id',
|
||||
'private_key_id',
|
||||
'extra_attributes',
|
||||
'smtp_attributes',
|
||||
];
|
||||
|
||||
public $casts = [
|
||||
'extra_attributes' => SchemalessAttributes::class,
|
||||
'smtp_attributes' => SchemalessAttributes::class,
|
||||
];
|
||||
|
||||
public function scopeWithExtraAttributes(): Builder
|
||||
{
|
||||
return $this->extra_attributes->modelScope();
|
||||
}
|
||||
public function scopeWithSmtpAttributes(): Builder
|
||||
{
|
||||
return $this->smtp_attributes->modelScope();
|
||||
}
|
||||
|
||||
public function standaloneDockers()
|
||||
{
|
||||
@@ -43,8 +50,6 @@ class Server extends BaseModel
|
||||
return $this->hasMany(SwarmDocker::class);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function privateKey()
|
||||
{
|
||||
return $this->belongsTo(PrivateKey::class);
|
||||
|
||||
Reference in New Issue
Block a user