Showing 10 of 1,214 results.

Creating a Custom Statamic 500 Server Error Page: Part Two

…the handling of error responses. Laravel provides extensive options and methods for customizing the reporting and rendering of exceptions, all of which are powerful in their own right. However, we will make use of a few different features to...

Editing Large Files on Windows

I haven't had much of a chance to publish any articles or tutorials lately (I do have some awesome ones planned and in the furnace, though!). For this post I'd like to make note of the newest text editor to join my arsenal (Sublime Text and PHP...

BillingContent | The Statamic Add-on Roundup

The BillingContent add-on acts as a content delivery API for a customized Laravel Spark installation. The Laravel Spark installation uses many of the same assets as the Statamic site; this API delivers content to the Spark application so that I do...

Laravel Collection Public API: avg

avg($key = null) The avg method is a useful method for calculating the average of all items in the collection. The avg method defines an optional $key parameter, which can be used to specify what property of the collection should be averaged. If...

Querying Document Nodes

Many methods are available to help quickly locate specific Blade constructs within a document. The following demonstrates how we can quickly retrieve the inner content of all echo statements within a document: 1 <?php 2 3 use Stillat \ BladeParser...

Available Methods | Querying Document Nodes

The following methods are also available on all NodeCollection instances, in addition to the following node types: Stillat\BladeParser\Nodes\Components\ComponentNode, Stillat\BladeParser\Nodes\DirectiveNode

Filter Search