public function user($guard = null)
    {
        $user = Auth::guard($guard)->user();

        return $user ? [
            'className' => get_class($user),
            'id'        => $user->getAuthIdentifier(),
        ] : [];
    }