Showing 10 of 2,145 results.

Examples of Specific Numbers | Laravel String Pluralization

The following table will show more examples of handling specific numbers when dealing with pluralization translation. The table will use the following translation message: 1 {0} There are no books! 2 |{1,2,3} You have one, two or three books. 3...

Example Use | Laravel 5: Encoding HTML With the "e" Helper Function

Let's assume that a malicious user was posting on a forum and set the subject of their post to this: 1 < script > alert ( " hello everyone " ) ; < / script > If the forum software did not sanitize user output, perfectly valid JavaScript code would...

all | The Laravel Framework Console Kernel

The all method is used to get all of the commands that have been registered with the console application. The commands will be returned as an array with the command name as the key and the command's class instance as the value. This method will...

findComponentByTagName | Querying Document Nodes

Returns the first component tag within the document with the provided name. Argument Description $tagName The tag name to filter on. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ Components \ ComponentNode ; 4 5 public function...

Laravel String Helper Functions

String operations in PHP often seem complicated to developers coming to the language from other language, specifically languages that have a robust object-oriented approach to the provided data types. Operations such as checking if a particular...

validate | Validating Documents

Validates the document with the internal BladeValidator instance. After validation is complete, any produced validation errors will be available through the getErrors() method, as well as the getValidationErrors() method to retrieve only the...