Showing 10 of 2,133 results.

Inconsistent Directive Indentation | The Validate Command

Class : InconsistentIndentationLevelValidator The inconsistent directive spacing validator may be used to emit validation errors when a pair's opening and closing directives do not have the same indentation. The following template: 1 @if ( $ this...

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

Laravel 5: Conditionally Retrieving Array Values With where

The where helper method is functionally similar to the pluck method, in that both take a source $array and filter it to produce a smaller array. It works by iterating over each element in the $array and executing the $callback on each key value...

8. Termination. | License

…d work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of...

Laravel Artisan General Command: The optimize Command

The optimize command optimizes various aspects to improve the performance of the Laravel application. The command provides two flags. The --force flag can be set to indicate that the compiled class file should be written (by default the compiled...

Laravel String Helper Function: str_replace_last

…c usage of the replaceLast method. The results of the method call will appear above the call as a comment. 1 use Illuminate \ Support \ Str ; 2 3 // Hello! Goodbye! 4 Str :: replaceLast ( ' Hello ' , ' Goodbye ' , ' Hello! Hello! ' ) ; 5 6 //...

Additional Notification Methods | Laravel 5 Facades

The Notification facade defines a few extra methods that can be called without resolving the notification sub-system from the service container. Facades define extra methods to provide simpler access to underlying sub-systems, or to call functions...

Laravel MessageBag Public API: all

…at stored within the MessageBag instance (which can be retrieved using the getFormat method). Alternatively, developers can specify their own $format to customize the results each time the all method is executed. The all method will return an...

Laravel String Helper Function: is

…( ' *pare ' , ' prepare ' ) ; 11 12 // true 13 Str :: is ( ' *pare ' , ' compare ' ) ) ; 14 15 // true 16 Str :: is ( ' m*e ' , ' mouse ' ) ; 17 18 // true 19 Str :: is ( ' m*e ' , ' meme ' ) ; The following example return false , and is just to...