Showing 10 of 1,322 results.

Laravel Facades Part Three: Creating Custom Facades

…ere does not need to possibly hundreds of instances of Calculator created: many consumers of the class can share a single instance (note that not all classes should be bound as a singleton). The important part is that we have an service container...

Empty Condition Expressions | The Validate Command

Class : EmptyConditionValidator The empty condition expressions validator emits a validation error when conditional directives do not contain an expression. The following template: 1 @if 2 3 @else 4 5 @endif will emit the following validation...

Inconsistent Directive Casing | The Validate Command

Class : InconsistentDirectiveCasingValidator The inconsistent directive casing validator emits a validation error when a directive's casing within the template does not match the directive's definition. The following template: 1 @ENDPHP will emit...

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...

Implementing C# Events

A common requirement when designing and implementing software is the ability to respond to certain code conditions, or at key points in an application's execution lifecycle. These conditions and lifecycle points can be thought of as events , where...

Disabling Favicon Features | Favicon Configuration

The favicon generation features can be disabled by updating the enabled value within your site's site_essentials/favicons.php configuration file. When disabled, favicons will not be automatically added to your site's web manifest file (if using...

Filter Search