Showing 10 of 1,322 results.

Laravel Collection Public API: chunk

…ng with large collections in that it allows developers to create smaller collections to work with. The chunk method defines two parameters: $size , which is used to control how large each newly created collection will be; and $preserveKeys ,...

Laravel MessageBag Public API: setFormat

…the format. 18 $ messageBag -> setFormat ( ) ; 19 20 // :message 21 $ format = $ messageBag -> getFormat ( ) ;This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...

Laravel Collection Public API: keyBy

…value can also be supplied instead of a function). The signature of the callback function is keyBy($item) , where the $item is the actual item in the collection. This method does not change the original Collection instance will will return a new,...

Error Types | Parser Errors

There are a variety of specific error types, each encoding a unique scenario: Error Type Code Unknown 000 Unexpected End of Input 001 Unexpected Echo 002 Unexpected Raw Echo 003 Unexpected Triple Echo 004 Unexpected Comment 005 Unexpected...

Performing Bulk Actions | Managing Comments

Control Panel users may select multiple comments by selecting individual comments using the checkbox on the left side, or by selecting all comments using the checkbox in the top-left corner of the comments table. When at least one comment is...

Example Use | Laravel 5: String Translation Public API

…s will demonstrate how to make equivalent calls between the trans and the get method. For more detailed explanation of each of the parameters, see the section on the get method. In the following example, we will use the trans method to retrieve...

Example Use | Laravel 5: String Translation Public API

…he translator instance yet. After the call to addLines , the value of $afterAddLinesCall will be A new line since the translator now has an entry for the addlines.test translation key. You will also notice that we had to specify the en locale...

Filter Search