This commit is contained in:
Andras Bacsai
2023-03-27 14:31:42 +02:00
parent 1c87146a50
commit 653efb6983
21 changed files with 180 additions and 29 deletions

View File

@@ -4,8 +4,8 @@ namespace App\Models;
class Server extends BaseModel
{
public function privateKeys()
public function privateKey()
{
return $this->morphToMany(PrivateKey::class, 'private_keyable');
return $this->belongsTo(PrivateKey::class);
}
}