public static function back($only = false, $trigger = true)
    {
        $referer = Request::header('referer');

        if ($referer === false) {
            return false;
        }

        self::$debuglvl = 3;

        if ($only) {
            static::only($referer, 302, $trigger);
        } else {
            static::to($referer, 302, $trigger);
        }
    }
public static function back($only = false, $trigger = true)
    {
        $referer = Request::header('referer');

        if ($referer === false) {
            return false;
        }

        self::$debuglvl = 3;

        if ($only) {
            static::only($referer, 302, $trigger);
        } else {
            static::to($referer, 302, $trigger);
        }
    }
public static function back ( $ only = false , $ trigger = true ) { $ referer = Request :: header ( 'referer' ) ; if ( $ referer === false ) { return false ; } self :: $ debuglvl = 3 ; if ( $ only ) { static :: only ( $ referer , 302 , $ trigger ) ; } else { static :: to ( $ referer , 302 , $ trigger ) ; } }
Return to redirect to new path

@param bool $only
@param bool $trigger
@return bool|void
Return to redirect to new path