Showing 7 of 587 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:
To change the status code of the response simply supply an argument for the $status parameter:
To change the status code of the response simply supply an argument for the $status parameter:
The following example demonstrates how to check if a particular view exists by name: When arguments are supplied to the view function an internal call to Factory::make will take place and the created View instance will be returned as the result....
The dd function is a debug utility that will display useful information about the objects or values supplied. This function will also prevent further execution of the script; it will dump the values of the supplied arguments and die (exit the...
The signature of the tap function is:
The optional function returns a new instance of "Illuminate\Support\Optional" with the provided value. This helper class allows you to easily retrieve a default, or null value on method return values or object properties that might not exist. This...