zoukankan      html  css  js  c++  java
  • Redirect

    Redirect

    To use this Class, add the following to the top of the file.

    use Redirect;

    Redirect::to($path, $status = 302, $headers = array(), $secure = null)

    Creates a new redirect response to the given path.

    // Create a Redirect Response to a location within the application
    return Redirect::to('user/profile');
    
    // Create a Redirect Response with a 301 status code
    return Redirect::to('user/profile', 301);
    
    // Create a Redirect Response and flash to the Session
    return Redirect::to('profile')->with('message', 'Welcome Back!');

    Redirect::home($status = 302)

    Creates a new redirect response to the "home" route.

    return Redirect::home();

    Redirect::back($status = 302, $headers = array())

    Create a new redirect response to the previous location.

    return Redirect::back();

    Redirect::refresh($status = 302, $headers = array())

    Create a new redirect response to the current URI.

    return Redirect::refresh();

    Redirect::guest($path, $status = 302, $headers = array(), $secure = null)

    Create a new redirect response, while putting the current URL in the session.

    return Redirect::guest('user/profile');

    Redirect::away($path, $status = 302, $headers = array())

    Create a new redirect response to an external URL (no validation).

    return Redirect::away('http://www.google.com');

    Redirect::secure($path, $status = 302, $headers = array())

    Create a new redirect response to the given HTTPS path.

    return Redirect::secure('user/profile');
  • 相关阅读:
    AE开发 入门教程
    工作空间工厂 打开文件例子
    Delphi IDE使用的一些主要技巧
    动画演示 Delphi 2007 IDE 功能[2]
    Delphi的类与继承
    属性的自动完成
    DELPHI中函数、过程变量的声明与应用
    Delphi回车键切换焦点
    delphi 窗体的创建和释放
    delphi assigned函数的用法
  • 原文地址:https://www.cnblogs.com/chunguang/p/5643013.html
Copyright © 2011-2022 走看看