Showing 10 of 2,133 results.

jsonSerialize() | Laravel Fluent Part Two: The Public API

The jsonSerialize method internally returns a call to toArray . Because of this, toArray , jsonSerialize and getAttributes are all functionally equivalent. The jsonSerialize method exists to satisfy PHP's JsonSerializable interface, which allows...

getValidationErrors | Validating Documents

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...

Directive Parsing and Whitespace Constraints | Core Concepts

Another significant difference in the parser implementations is that directives do not require a leading space with the library (but require a trailing space if the next character is not a left parenthesis, line break or null ). 1...

Semantic Highlighting | Contributing

Semantic highlight support is offered in addition to the TextMate grammar file, and is capable of providing much more accurate and pleasing highlighting results. This highlighting strategy utilizes the results of the server's Antlers parser, scope...

getWordLeftAtOffset | Text Extraction

Retrieves the word to the left of the provided offset, ignoring the word at the provided offset. Argument Description $offset The character offset. $chars A list of characters that won't break a word. 1 <?php 2 3 public function...