Showing 10 of 2,144 results.

Laravel Collection Public API: reject

reject($callback) The reject method used to create a new Collection instance containing all the items in the collection that do not pass a given truth test. The reject method only defines one parameter: $callback . The $callback function should...

Laravel Facades Part Two: Using Facades

This article is part of a four part series all about Laravel facades. Each of the parts are listed below: Laravel Facades Part One: An Introduction to Facades, Laravel Facades Part Two: Using Facades, ., Laravel Facades Part Three: Creating Custom...

Laravel Application Helper Function: back

back($status = 302, $headers = []) The back helper function is used to create a redirect response to the user's previous location. It defines two parameters which can be used to control the status code and headers of the response. An integer...

Laravel URL Helper Function: route

route($name, $parameters = [], $absolute = true, $route = null) The route helper function can be used to generate URLs to a given named route. The route function defines four parameters, but only three are used internally ( $name , $parameters and...

Laravel Artisan Tinker: The doc Command

The doc command can be used to view the documentation for an object, class, constant, method, function or property. It can accept either the function, method, class, etc name or a reference to an instance's methods as its arguments. Because of...

Laravel Collection Public API: diff_keys

diffKeys($items) The diffKeys method is similar to the diff method. It is used to determine which items whose keys in the collection are not present in the supplied $items collection's keys. $items can be either an array, or another instead of...