Add basic subuser listing for servers

This commit is contained in:
Dane Everitt 2019-11-03 12:20:11 -08:00
parent de464d35a2
commit 543884876f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
14 changed files with 310 additions and 4 deletions

View file

@ -4,6 +4,17 @@ namespace Pterodactyl\Models;
use Illuminate\Notifications\Notifiable;
/**
* @property int $id
* @property int $user_id
* @property int $server_id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
*
* @property \Pterodactyl\Models\User $user
* @property \Pterodactyl\Models\Server $server
* @property \Pterodactyl\Models\Permission[]|\Illuminate\Support\Collection $permissions
*/
class Subuser extends Validable
{
use Notifiable;

View file

@ -216,7 +216,7 @@ class User extends Validable implements
*/
public function getNameAttribute()
{
return $this->name_first . ' ' . $this->name_last;
return trim($this->name_first . ' ' . $this->name_last);
}
/**