Showing 7 of 1,216 result(s)
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:
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....
To change the status code of the response simply supply an argument for the $status parameter:
In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers :
The signature of the back method is:
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...
The Redirect facade resolves to an instance of "Illuminate\Routing\Redirector", which is where the back method is defined:
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.