public static function back()
    {
        $referer = $_SERVER['HTTP_REFERER'];

        if (! empty($referer)) {
            return self::redirect($referer);
        }

        return self::redirect('/');
    }
public static function back()
    {
        $referer = $_SERVER['HTTP_REFERER'];

        if (! empty($referer)) {
            return self::redirect($referer);
        }

        return self::redirect('/');
    }
public static function back ( ) { $ referer = $ _SERVER [ 'HTTP_REFERER' ] ; if ( ! empty ( $ referer ) ) { return self :: redirect ( $ referer ) ; } return self :: redirect ( '/' ) ; }
Redirect to HTTP referer.

@return mixed
Redirect to HTTP referer .