Showing 10 of 2,055 results.

Laravel Collection Public API: search

search($value, $strict = false) The search method is used to search the collection for a given $value . If the given $value is found, the value's corresponding key is returned. If the $value is not found in the collection, the search method will...

Laravel Facades Part Three: Creating Custom Facades

…* Adds two numbers. 7 8 * @param mixed $firstNumber 9 * @param mixed $secondNumber 10 * @return mixed 11 */ 12 public function add ( $ firstNumber , $ secondNumber ) 13 { 14 return $ firstNumber + $ secondNumber ; 15 } 16 17 // Possibly many more...