Showing 10 of 1,089 results.

Lambdas as Function Arguments | Lambdas And Closures

…rst thing we have to do is define what our function is going to do. Our function will be a simple utility function called if_null_then . It will check if a value is null , if it is, then it returns a default value $then , or does something the...

Laravel: Implementing a MD5 Hasher

…18 * @param array $options 19 * @return string 20 * 21 * @throws \ RuntimeException 22 */ 23 public function make ( $ value , array $ options = [ ] ) 24 { 25 // If the user supplied a salt, use that. If not we 26 // can generate it using the Str...

Resolving Variable Values | Introduction & Installation

…=> ' John Doe ' 12 ] ) ; which produces the following output: 1 name = " author " content = " John Doe " content_two = " $ author " content_three = " $ $ author " Attribute Renderer does not support more complicated variable paths, such as nested...

Laravel MessageBag Public API: getFormat

The getFormat is the logical opposite of the setFormat method. It simply returns the current format that is being used by the MessageBag instance. 1 <?php 2 3 use Illuminate \ Support \ MessageBag ; 4 5 // Create a new MessageBag instance. 6 $...

Filter Search