mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 13:23:45 +02:00
Cleanup frontend controllers and middleware
This commit is contained in:
@@ -60,6 +60,16 @@ class Subuser extends Model implements CleansAttributes, ValidableContract
|
||||
'server_id' => 'numeric|exists:servers,id',
|
||||
];
|
||||
|
||||
/**
|
||||
* Return a hashid encoded string to represent the ID of the subuser.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getHashidAttribute()
|
||||
{
|
||||
return app()->make('hashids')->encode($this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server associated with a subuser.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user