mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-05-01 04:13:47 +02:00
Final adjustments to Daemon <-> Panel communication change
This commit is contained in:
@@ -58,6 +58,13 @@ class Server extends Model implements CleansAttributes, ValidableContract
|
||||
*/
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* Always eager load these relationships on the model.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $with = ['key'];
|
||||
|
||||
/**
|
||||
* Fields that are not mass assignable.
|
||||
*
|
||||
@@ -286,7 +293,7 @@ class Server extends Model implements CleansAttributes, ValidableContract
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function ownerKey()
|
||||
public function key()
|
||||
{
|
||||
return $this->hasOne(DaemonKey::class, 'user_id', 'owner_id');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user