Showing 10 of 1,090 results.

Laravel Collection Public API: pluck

pluck($value, $key = null) The pluck method is used to retrieve the a list of values from the collection. It defines two parameters: $value and $key . The $value indicates which property should become the value in the resulting collection and the...

Meerkat Forms

Meerkat's forms in version 2 were designed to be familiar if you are already accustomed to Statamic's forms. With that said, the two systems operate independently and there may be a few syntax differences between the two. While most concepts are...

Laravel 4: Working With Checkboxes and Input

…lse ). This will cause the HTML to output the necessary HTML to make the checkbox checked on the screen: 1 {{ Form::checkbox('my_checkbox', '1', $supplier->active) }} In the above code sample, $supplier is just an example class that has an active...

Laravel Collection Public API: map

…; 4 5 // Create a new collection instance. 6 $ collection = new Collection ( [ 7 ' first ' , ' second ' , ' third ' 8 ] ) ; 9 10 // Create a new collection where all the strings 11 // in the original collection have had their case 12 // changed...

The "is" Filters

The is filters provide specialized filters for targeting specific comment properties, or a range of properties;

Laravel 5: Accessing the Logging Features With logger

The logger helper function can be used to retrieve the logger instance from the Service Container or as a convenient way to log debug messages within your Laravel application without having to inject any dependencies or include the...

Laravel 5: Throwing HTTP Exceptions With abort

…FoundHttpException using only the user supplied $message .The signature of the abort function is: 1 function abort ( 2 $ code , 3 $ message = ' ' , 4 array $ headers = [ ] ` 5 );The following example assumes that some $user object exists with the...

Filter Search