/** * * * @return array */ public function getUser() { try { $user = \Helper::getSessionCachedUser(); return $user; } catch (\Exception $e) { abort('404'); } }
/** * * * @return mixed * @throws UserNotCachedException * @throws UserNotSubscribedException; * @static */ public static function getSessionCachedUser() { return \App\Werashop\Helper\Helper::getSessionCachedUser(); }