Showing 10 of 2,145 results.

Laravel 5: Accessing and Sending HTTP Responses With response

The response helper function is a useful function that can be used to accomplish two different tasks. If no arguments are supplied to the response function, an implementation of Illuminate\Contracts\Routing\ResponseFactory will be returned (by...

Laravel Array Helper Function: array_dot

The dot helper method will take a multi-dimensional array and return a new associative array where the keys are built from all the nested keys, separated with the . character. The signature for the dot helper method is: dot($array, $prepend = '')...

Laravel Collection Public API: transform

transform(callable $callback) The transform is identical to the map method, but instead of returning a new Collection instance, the transform method will modify the original collection instance. The transform method will return a reference to the...

Rejectable Properties | Introduction & Installation

Rejectable properties are similar to ignorable properties. However, if a null or empty string value is resolved for one of these values, an empty attribute string is returned, regardless of if other property values were matched: 1 <?php 2 3 use...

output | The Laravel Framework Console Kernel

The output method is used to retrieve the generated output from the Artisan console command that was executed last using the call method. The following example will assume that the inspire command has been registered. First we need to call the...