Showing 10 of 1,214 results.

Supplying Multiple Parameters | Basic Filtering

By taking a quick scan of that table, you may notice that some filters accept multiple parameters. Parameters are separated by a comma ( , ). For example, if we wanted to filter our comments to only those left by an authenticated user in a known...

Laravel Artisan Command Input and Command Signatures

Most useful commands need to accept some sort of input from the user. The input can be as simple as requiring users to supply information in the form of parameters and options or can be more complicated by interactively entering data at the...

Default Comment Variables | Default Variables

…ed. {{ comment_date_formatted }} A string representation of the UTC date/time the comment was submitted; formatted using a configured value. {{ is_root }} A boolean value indicating if the comment is a root level comment, or has a depth of 1 . {{...

Laravel Collection Public API: sortBy

sortBy($callback, $options = SORT_REGULAR, $descending = false) The sortBy method is useful and versatile way to sort collections by some key, or by some value returned by a $callback . The $callback can either be a function that defines two...

getPhpTags | Querying Document Nodes

Returns all PHP tags within the document. PHP tags are created after parsing raw PHP regions within the source template. PHP tags will be created whenever the following types of PHP tags are encountered: PHP Short Echo:, <?= ?>, PHP Open:, <?php...

getLiterals | Querying Document Nodes

Returns all literal content nodes within the document. Returns the source template's content that could not be parsed into a valid Blade construct. If a document contains no Blade code, the parser will return a single instance of LiteralNode . 1...

getDirectives | Querying Document Nodes

…rns 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 by...

getFirstError | Validating Documents

Retrieves the first error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. 1 <?php 2 3 use Stillat \ BladeParser \ Errors \ BladeError ; 4 5 public function...