Showing 10 of 2,144 results.

Laravel URL Helper Function: url

url($path = null, $parameters = [], $secure = null) The url helper function is a versatile function that can be used to generate a URL to a given path or return an instance of the configured Illuminate\Contracts\Routing\UrlGenerator implementation...

Laravel Collection Public API: every

every($step, $offset = 0) The every method can be used to retrieve a subset of a collection based on each items distance from each other. It defines one required parameter $step and one optional parameter $offset . An argument supplied for $step...

Example Use | Laravel 5: String Translation Public API

The following examples will demonstrate how to make equivalent calls between the trans and the get method. For more detailed explanation of each of the parameters, see the section on the get method. In the following example, we will use the trans...

Laravel Application Helper Function: view

view($view = null, $data = [], $mergeData = []) The view function can be used to return an implementation of Illuminate\Contracts\View\Factory (by default this is an instance of Illuminate\View\Factory ) or an implementation instance of...

Laravel String Helper Function: substr

The substr helper method is a convenient helper built on top of PHP's mb_substr function (unlike PHP's mb_substr function, substr does not provide a way to change the encoding that is used) that is used to return a portion of a string. The substr...