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,13 +4,8 @@ namespace App\Models;
class PrivateKey extends BaseModel
{
public function private_keyables()
{
return $this->hasMany(PrivateKeyable::class);
}
public function servers()
{
return $this->morphedByMany(Server::class, 'private_keyable');
return $this->hasMany(Server::class);
}
}