mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -16,7 +16,9 @@
|
||||
*/
|
||||
class SshKey extends AbstractModel
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\SshKeyFactory> */
|
||||
use HasFactory;
|
||||
|
||||
use SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
@ -30,11 +32,17 @@ class SshKey extends AbstractModel
|
||||
'public_key' => 'encrypted',
|
||||
];
|
||||
|
||||
/**
|
||||
* @return BelongsTo<User, covariant $this>
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsToMany<Server, covariant $this>
|
||||
*/
|
||||
public function servers(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Server::class, 'server_ssh_keys')
|
||||
|
Reference in New Issue
Block a user