Showing 10 of 2,055 results.

Array Sort Considerations | Laravel 5: Sorting Arrays With sort

The array_sort function internally creates a new instance of the \Illuminate\Support\Collection class with the given $array and then calls the collection's sortBy(callable $callback = null) method with the given $callback . It then converts the...

getFirstFatalError | Validating Documents

Retrieves the first fatal error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. Fatal errors are considered those that would produce invalid compiled PHP code,...

Laravel Task Scheduling: Managing Task Output

…ut from your tasks, if any. Output from task processes can be appended to a file or emailed to any given email address (provided that email services have been previously configured). The following table lists each of the various output management...

Laravel 5 Macros

Macros are a way to reduce the lines of code a developer has to write, and can be traditionally thought of as "shortcuts". Laravel generally uses macros to add, or inject, functionality into various classes at runtime. Developers familiar with C#...

Rendering Code Samples in Search Results | Search Results Tag

…S class names or data attributes., sample, : The content of the code sample. Be mindful when rendering code samples in search results. If your entries contain many code samples, you may want to limit the search results to only displaying one if...

Resolving Variable Values | Introduction & Installation

…is supplied as the second argument to the attributes function. When specifying variable names, we simply prefix them with the $ symbol: 1 <?php 2 3 use function Stillat \ StatamicAttributeRenderer \ attributes ; 4 5 attributes ( [ 6 ' name ' => '...

What I'm Working on Now | Laracon, Blade and What's Next

…3 @endif 4 5 < p > Some content here. </ p > 6 7 @if ( $ condition ) 8 </ div > 9 @endif My existing Blade parser library can parse this, but doesn't produce anything worthwhile if you wanted to also work with the HTML. The prettier formatter...