Showing 10 of 1,278 results.

Laravel Collection Public API: get

get($key, $default = null) The get method can be used to retrieve an item from the collection based of its $key . An optional $default argument can be passed that will be returned if the given $key does not exists in the collection. The $default...

Laravel Artisan Tinker: The clear-compiled Command

The clear-compiled command is used to clear the compiled classes and services application cache. These two files are located in the bootstrap/cache/ directory. The compiled classes cache is stored in a file named compiled.php and the services...

Creating Our Own make() Method | Laravel Paginator Pretty URLs

…8 * @param int | null $perPage 9 * @return \ PrettyPaginator 10 */ 11 public static function make ( array $ items , $ total , $ perPage = null ) 12 { 13 // This is just a static method that will return a paginator class 14 // similar to the...

Facade Aliases and Importing Facades | Laravel 5 Facades

…a shortcut to a longer class name. For example, when we use something as something else, we are creating a class alias: 1 use Some\ReallyReallyLongClassName as ShorterName; In the above example ShorterName is an alias of ReallyReallyLongClassName...

Filter Search