lasthourcloud/app/Models/PrivateKey.php

17 lines
288 B
PHP
Raw Normal View History

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