Showing 10 of 1,089 results.

6. Conveying Non-Source Forms. | License

…de either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of...

Laravel Array Helper Function: array_first

first($array, callable $callback = null, $default = null) Let's begin discussing the first helper method be examining the $callback . The $callback is a function that accepts a $key and a $value as its parameters. The following code sample is an...

Laravel String Helper Function: contains

The contains helper method will check if any of the $needles are in the given $haystack . If any of the given $needles are found in the $haystack , the method will return true , otherwise it returns false . $needles can be any value that can be...

Laravel String Helper Function: parse_callback

The parseCallback helper method is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: 1 ClassName @...

6. Conveying Non-Source Forms. | License

…de either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of...

Laravel String Helper Function: random

The random helper method generates a random string of the specified $length . This method internally uses the OpenSSL function openssl_random_pseudo_bytes , and therefore requires the OpenSSL extension to be installed and configured . The...

Laravel Array Helper Function: array_add

The add helper method adds the given $key and $value to an $array if the $key doesn't already exist within the given $array . The signature for the add helper method is: add($array, $key, $value) Consider the following code snippet: 1 use...

Laravel 5.5 String Helper Method: kebab

The snake helper method replaces all uppercase letters within the string with the lower cased variant prefixed with the - character. The only exception to this rule is that if the first character of the string is capitalized, it will be replaced...

Filter Search