getCustomDirectives | Blade Compiler
Get the list of custom directives. 1 <?php 2 3 public function getCustomDirectives ( ) : array ;
Showing 10 of 1,204 results.
Get the list of custom directives. 1 <?php 2 3 public function getCustomDirectives ( ) : array ;
Tests if any errors are present. 1 <?php 2 3 public function hasErrors ( ) : bool ;
Tests if any fatal errors are present. 1 <?php 2 3 public function hasFatalErrors ( ) : bool ;
Sometimes it is useful to store the rendered contents of a view as a string for further processing. The following example demonstrates how to accomplish this using the view helper function: 1 $ welcomeViewContents = view ( ' welcome ' ) -> render...
Assume we have an array of numbers, from 0 to 100 : 1 <?php 2 3 $ numbers = range ( 0 , 100 ) ; An array of all numbers less than or equal to 10 can be created like so: 1 <?php 2 3 use Illuminate \ Support \ Arr ; 4 5 $ smallNumbers = Arr :: where...
That example only used the $value from the array, the following example will make use of both the key and value. Consider the following array of students and test scores: 1 <?php 2 3 $ testScores = [ 4 ' Alice ' => 95 , 5 ' Allison ' => 96 , 6 '...
If you are dynamically loading a partial based on a set type (such as when creating templates for a Bard or Replicator field), you can specify which set within the corresponding blueprint applies to a file by using the special @set directive: 1...
Querying nodes on ComponentNode or DirectiveNode instances requires structural analysis. Node queries will be evaluated against each nodes list of children nodes. If this is your intent, be sure to call the resolveStructures() method on the...
Tests if the document contains any Blade directives. 1 <?php 2 3 public function hasAnyDirectives ( ) : bool ;