Showing 10 of 2,138 results.

Laravel Router Helper Function: get

get($uri, $action) The get function is a shortcut to registering a route with the router that responds to the GET HTTP verb. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the route...

Array Sort Considerations | Laravel 5: Sorting Arrays With sort

The array_sort function internally creates a new instance of the \Illuminate\Support\Collection class with the given $array and then calls the collection's sortBy(callable $callback = null) method with the given $callback . It then converts the...

Laravel Application Helper: abort_unless

abort_unless($boolean, $code, $message = '', array $headers) The abort_unless helper is the logical opposite of the abort_if helper function. Like abort (discussed in the Laravel Application Function: abort article) and abort_if (discussed in the...