Showing 10 of 1,280 results.

Laravel Miscellaneous Helper Function: dd

dd() The dd function is a debug utility that will dump a set of values and then die. This means it will create a human-readable representation of the values and then stop execution of the script. The dd function will take into account if the...

Laravel Collection Public API: combine

combine($values) The combine method is used to combine the keys of the collection the method was called on with the values of another collection or array (supplied as an argument for $values ). This method is equivalent to using PHP's...

Laravel 5: Conditionally Throwing Exceptions With throw_unless

The throw_unless helper function is the logical counterpart to the throw_if helper function. If the provided $boolean value evaluates to false , a new instance of the provided exception will be created and thrown. Any parameters specified will be...

Laravel Collection Public API: first

first(callable $callback = null, $default = null) The first method is used to get the first item in a collection, or to get the first item in a collection that matches a set of criteria. A $callback can be supplied to return the first item in the...

Laravel Artisan Generator Command: The make:auth Command

The make:auth command can be used to generate login and registration views, a basic HomeController controller and routes that can be used for basic authentication tasks. It accepts the optional flag --views which can be used to only generate the...

Laravel 5: Redirecting Users to the Previous Page With back

The back helper function is used to create a redirect response to the user's previous location. It defines two parameters which can be used to control the status code and headers of the response. An integer argument can be supplied for the $status...

Filter Search