代码之家  ›  专栏  ›  技术社区  ›  story ks

拉维尔5.4路返回刀片

  •  0
  • story ks  · 技术社区  · 7 年前

    我需要按钮回到上一页 我试过了

    {{ route(back()) }} Not working

    {{back()}} Not working

    {{ redirect(back()) }} Not working

    1 回复  |  直到 7 年前
        1
  •  3
  •   FULL STACK DEV    7 年前

    使用前面的方法

    {{ URL::previous() }}
    

    或者你也可以使用助手。

    // Get the current URL without the query string...
    echo url()->current();
    
    // Get the current URL including the query string...
    echo url()->full();
    
    // Get the full URL for the previous request...
    echo url()->previous();