Signature | Laravel 5 Collections: Calculating the Sum of a Collection With sum
1 public function sum ( 2 $ callback = null 3 ) ;
Showing 10 of 2,055 results.
1 public function sum ( 2 $ callback = null 3 ) ;
Returns the Blade errors. Returns a Collection instance containing the document's errors. This method will return errors from all sources, such as parser and validation errors. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public...
Returns a collection containing the document's validation errors. Errors added to the document via. the addValidationResult or addValidationError methods will be included in the results. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5...
…se 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 5 $ template = <<< ' BLADE ' 6 Hello, {{ $ world 7 BLADE ; 8 9 $ doc = Document :: fromText ( $ template ) ; 10 11 // Returns '[BLADE_P001001] Unexpected end of input while...
The documentation collection has already been added to the default RSS/Atom feed. To add additional collections, update the config/feedamic.php configuration file and add the desired collections to the collections array: 1 <?php 2 3 return [ 4 //...
1 public function every ( 2 $ key , 3 $ operator = null , 4 $ value = null 5 ) ;
1 public function sortByDesc ( 2 $ callback , 3 $ options = SORT_REGULAR 4 ) ;
We can also instruct the pluck method to return an array that contains both a key and a value. We do this by passing in a third argument to the pluck function: the $key . Let's reuse the people array: 1 $ people = [ 2 new Person ( ' Jane ' , '...
In this article we will create an implementation of Illuminate\Contracts\Hashing\Hasher using PHP s crypt function and the CRYPT_STD_DES hashing function. Before we write the code for the CRYPT_STD_DES implementation, we will examine each method...
The se_capture tag can be used to store the results of a template section, and output it later as a string. This is particularly helpful if you want to reuse the results of a partial, or navigation menu in multiple places without having to render...