2023-03-24 15:47:58 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
class PrivateKey extends BaseModel
|
|
|
|
{
|
2023-03-24 22:15:36 +01:00
|
|
|
public function private_keyables()
|
2023-03-24 15:47:58 +01:00
|
|
|
{
|
2023-03-24 22:15:36 +01:00
|
|
|
return $this->hasMany(PrivateKeyable::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function servers()
|
|
|
|
{
|
|
|
|
return $this->morphedByMany(Server::class, 'private_keyable');
|
2023-03-24 15:47:58 +01:00
|
|
|
}
|
|
|
|
}
|