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