username = $username; } public function handle() { $username = $this->username; $user = ShellApi::exec('getent passwd '.$username); if (empty($user)) { return null; } $user = explode(':', $user); return $user; } }