Showing 10 of 2,145 results.

Laravel Application Helper Function: request

request($key = null, $default = null) The request helper function is a useful helper function that can be used to either retrieve an instance of Illuminate\Http\Request or retrieve an item from the user's input. To retrieve an instance of Request...

Laravel Miscellaneous Helper Function: trait_uses_recursive

trait_uses_recursive($trait) The trait_uses_recursive function will return an array of all the traits that are used by a class. It will also return any traits that the traits are using. Given the traits and class: 1 <?php 2 3 trait TraitOne { } 4...

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...

An Introduction to Laravel's Artisan Console

The Artisan Command Line Environment (CLI) is a terminal based application that can be used to ease development with Laravel. Artisan ships with many commands by default as well as exposes APIs to create your own custom commands. Many of the...

Laravel Collection Public API: last

last(callable $callback = null, $default = null) The last method is the logical opposite of the first method, and is used to get the last item in a collection, or to get the last item in a collection that matches a certain criteria. A $callback...