Showing 10 of 1,322 results.

Laravel Array Helper Function: array_sort

sort($array, callable $callback) The sort helper method will allow you to sort the given $array based on some condition returned by the $callback . The method works by iterating over all the values in the $array and passing the values it finds...

Validating Blade

The Blade Parser library provides a simple yet powerful validation system. The validation system can be used to validate individual nodes within a document or entire document instances at once.

Registering Custom Validators | Validating Blade

…ServiceProvider extends BaseServiceProvider 9 { 10 public function boot ( ) 11 { 12 $ this -> app -> resolving ( BladeValidator :: class , function ( BladeValidator $ validator ) { 13 // Add your validator implementations here. 14 } ) ; 15 } 16 }...

4. Conveying Verbatim Copies. | License

You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License...

Laravel MessageBag Public API: getMessages

…age ' ( length = 29 ) 5 ' world ' => 6 array ( size = 1 ) 7 0 => string ' The second message ' ( length = 18 )This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...

The where Filter | The "where" Filters

…e than six revisions: 1 {{ meerkat : responses filter = " where(revision_count, >, 6) " }} 2 3 {{ comments }} 4 <!-- Render your comment thread here. --> 5 {{ /comments }} 6 7 {{ /meerkat : responses }} Remember that all filters can be chained,...

Laravel 5 Collections: The Static API

…tion With wrap, Laravel 5 Collections Static API: Returning the Items of a Collection With unwrap, Laravel 5 Collections Static API: Creating a Collection By Invoking a Callback a Given Number of Times With times, Laravel 5 Collections Static...

Laravel 5 Collections: Removing Collection Elements With forget

The forget method removes an item from the collection based on given $key . The forget method returns a reference to the original collection, meaning it modifies the collection instance it was called on.1 public function forget ( 2 $ keys 3 ) ;The...

Laravel Collection Public API: combine

…ection the method was called on with the values of another collection or array (supplied as an argument for $values ). This method is equivalent to using PHP's array_combine function. This method also returns a new Collection instance and does...