Search

Showing 7 of 1,975 result(s)

/blade-parser/v1/core-concepts#content-differences-from-the-core-laravel-parser

The document parser diverges from the core Laravel Blade parser in a few areas. These differences make it easier to consume the compiled templates directly or develop tooling to detect invalid PHP output.

/blade-parser/v1/document-text-extraction#content-gettext

Returns the original document text between two character offsets. Argument Description $startOffset The start offset. $endOffset The end offset. 1 <?php 2   3 public function getText ( int $startOffset, 4 int $endOffset) : string ; Example Use 1...

/blade-parser/v1/document-text-extraction#content-getwordatoffset

…document at the provided character offset. Argument Description $offset The character offset. $chars A list of characters that won't break a word. 1 <?php 2   3 public function getWordAtOffset ( int $offset, 4 array $chars = [ '-' ]) : string ;...

/blade-parser/v1/document-text-extraction#content-getwordrightatoffset

…ring 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 getWordRightAtOffset ( int $offset, 4 array $chars = [ '-' ]) : string ;...

/blade-parser/v1/document-text-extraction#content-getlineexcerpt

…t was extracted from. Argument Description $lineNumber The target line number. $radius The number of desired lines surrounding the target line number. 1 <?php 2   3 public function getLineExcerpt ( int $lineNumber, 4 int $radius = 2 ) : array ;...

/blade-parser/v1/html-fragments#content-changing-html-fragment-properties

Unlike most node types, updating the properties of HTML fragment nodes is not supported at this time.

/blade-parser/v1/parser-errors#content-isfatal

Tests if the current error is considered a "fatal" error. Fatal errors are those that are likely to cause issues when compiling the final PHP for a given template. Some parser generated errors are "warnings", and will not be reported as fatal...