Search

Showing 7 of 1,975 result(s)

/blade-parser/v1/document-structures#content-getallforelse

Returns all the document's for-else blocks. This method automatically performs structural analysis. 1 <?php 2   3 use Illuminate\Support\Collection ; 4   5 public function getAllForElse () : Collection ; Example Use 1 <?php 2   3 use...

/blade-parser/v1/document-structures#content-getrootforelse

Returns the direct for-else blocks. This method automatically performs structural analysis. Only nodes that appear at the root of the document, without any parent nodes, will be returned. 1 <?php 2   3 use Illuminate\Support\Collection ; 4   5...

/blade-parser/v1/documents#content-removenode

Removes the provided node instance from the document. Calling this method will reindex the nodes, but will not trigger structural analysis. If structural analysis has already been performed on the document, calling this method may remove the start...

/blade-parser/v1/querying-document-nodes#content-getphpblocks

…es\NodeCollection ; 4   5 public function getPhpBlocks () : NodeCollection ; Example Use 1 <?php 2   3 use Stillat\BladeParser\Document\Document ; 4   5 $template = <<<' BLADE ' 6 @php 7 $count = 1; 8 @endphp 9   10 @php ($count++) 11   12 @php...

/blade-parser/v1/querying-document-nodes#content-getdirectives

Returns all directives within the document. Returns all directives from the source document. Some directive pairs, such as the @php / @endphp and @verbatim / @endverbatim pairs will not result in an instance of DirectiveNode , as they are handled...

/blade-parser/v1/the-validate-command#content-phpstanlarastan-integration

If you'd like to automatically run Larastan results on the compiled output of Blade templates when running the blade:validate command, you simply need to install it via Composer and ensure the blade.validation.phpstan configuration option is set...

/blade-parser/v1/workspaces#content-getrootstructures

Returns the direct workspace structures. This method automatically performs structural analysis. Only structures that are at the root of a document, without any parent node, will be returned. 1 <?php 2   3 use Illuminate\Support\Collection ; 4   5...