Search

Showing 7 of 1,216 result(s)

/blog/2018/04/14/laravel-5-performing-http-redirects-with-redirect#content-accessing-the-redirector-instance-using-redirect

The Redirector class has many useful methods to help control the flow of users in your application. This section will not cover each method in detail, but simply shows how they can be used in conjunction with the redirect helper function:

/blog/2018/04/14/laravel-5-performing-http-redirects-with-redirect#content-redirecting-to-custom-urls

The Redirector does not provide a direct way to add additional information when generated the final URL, except for the $secure parameter. Luckily, the Redirect uses the "Illuminate\Routing\UrlGenerator" under the hood when generating URLs....

/blog/2018/04/14/laravel-5-performing-http-redirects-with-redirect#content-supplying-additional-headers

In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers :

/blog/2018/04/14/laravel-5-redirecting-users-to-the-previous-page-with-back#content-example-use

The following examples show different ways to return a RedirectResponse from a controller action. The examples assume that some controller class exists with a method named postCreateSomeValue . The actual details of the controller class and method...