Showing 10 of 1,322 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 Array Helper Function: array_only

The only helper method is the logical opposite of the except (discussed in the article Laravel Array Helper Function: array_except ) method. The signature for the only helper method is: only($array, $keys) Assuming that the $_POST super-global...

Laravel 5.5 String Helper Method: finish

The finish helper method will make sure that a given $value always ends with exactly one occurrence of the $cap . This helper method is incredibly useful when construction URIs or file paths. The $cap can be any string of characters, and does not...