coolify/app/Models/PrivateKey.php
Andras Bacsai f57684b024 Add Servers and PrivateKeys
Add new testhost
Remove privatekey injection from Dockerfile
2023-03-24 22:15:36 +01:00

17 lines
288 B
PHP

<?php
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');
}
}