Showing 10 of 1,278 results.

Replacing the Core Blade Compiler | Blade Compiler

Replacing the core Laravel Blade compiler entirely is not recommended, mainly due to the high likelihood of undesirable/unpredictable behavior when interacting with third-party libraries and Laravel itself. The main issues likely to arise are...

An Introduction to Laravel's Collection Public API

The Collection class exposes a generous public API, consisting of, at the time of this writing, 64 public methods. The Collection API exposes methods for retrieving values from a collection, transforming the underlying array, pagination and simple...

Special Cases for Laravel's Pluralization Features

Any words, or word endings, in the following table will not be affected by the plural method. This is either because the resulting word is already plural, or because there is no inflection available. Word endings are denoted by the prefix * :...

Directive Parsing and Whitespace Constraints | Core Concepts

…rectives do not require a leading space with the library (but require a trailing space if the next character is not a left parenthesis, line break or null ). 1 Leading@if('something) Trailing Produces the following compiled documents: 1 <?php 2 3...

The Raw PHP Directives | Core Concepts

…ler handle Blade's PHP directive. The library's parser will not attempt to locate the @endphp directive if the opening @php directive contains arguments: 1 @php ( $ args ) 2 3 @endphp The previous example produces the following output when using...

Creating a Custom Statamic 500 Server Error Page: Part Two

…as raised within the site's code base. In this article, we will create a new server error page with the added benefit that we will be able to change how we render our error page based on what kind of error was thrown. Statamic 3 leans heavily on...

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

Why Rebuild the Site? | Rebuilding Stillat.com

…so. When you have grown to resent signing in to your own site something needs to change. In my search I found Ghost , and it was intriguing and pretty, but ultimately not what I was looking for. So then I thought "to hell, I'll build my own based...