mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-04 20:52:05 +00:00
17 lines
288 B
PHP
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');
|
|
}
|
|
}
|