Showing 10 of 1,204 results.

Directive Spacing | The Validate Command

Class : DirectiveSpacingValidator The directive spacing validator emits a validation error when a directive does not have sufficient leading or trailing whitespace. The following template: 1 < span class = " @if @endif " > </ span > produces the...

Node Compilation | The Validate Command

Class : NodeCompilationValidator The node compilation validator checks the compiled output of echo statements and PHP blocks for any PHP syntax errors. The following template: 1 {{ $ hello ++++ }} 2 3 4 {{ $ world ++ + }} produces these validation...

Debug Directives | The Validate Command

Class : DebugDirectiveValidator The debug directives validator emits a validation error if any debug directives appear within a template. The following template: 1 @dd ( $ args ) would produce the following validation message: 1 Debug directive...

For Else Validator | The Validate Command

Class : ForElseStructureValidator The for else validator checks for many different types of issues within @forelse blocks, such as: Too many, @empty, directives, Missing, @empty, directive The following template: 1 @forelse ( $ users as $ user ) 2...

Handling Specific Numbers | Laravel 5: String Pluralization Syntax

Sometimes it is useful to associate a given message number with exactly one number. In previous examples, we've seen how to handle the pluralization case where the number of items is exactly 0 , however, we can expand this idea to any arbitrary...

Prettier 3 | Prettier Plugin Installation

If you are using Prettier 3, you need version 2 of the prettier-plugin-blade package: 1 npm install prettier-plugin-blade@^2 After adding prettier-plugin-blade to your project, you may add the following to your projects .prettierrc file:

Filter Search