Search

Showing 7 of 1,697 result(s)

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-configuring-stripe-and-spark-creating-our-product

With a few Statamic template adjustments out of the way, let's get to some fun stuff and start configuring Laravel Spark and Stripe. In this section, we will create a new product within the Stripe dashboard with monthly and yearly recurring...

/blog/2021/11/07/creating-a-statamic-compact-modifier#content-creating-our-modifier

…add a bit of Antlers to some page of our site so we can have Statamic call our modifier: {{ 'title,slug' | compact }} If we were to run our code now, the $value supplied to our modifier would be title,slug . Our modifier will allow variables to...

/blog/2016/12/07/laravel-artisan-closure-based-commands

Laravel 5.3 introduced a new shorthand syntax to make writing simple Artisan commands much simpler. The console kernel exposes a command($signature, Closure $callback) method. The $signature parameter accepts a command signature string , which...

/blog/2022/07/18/antlers-and-blade-formatters-behind-the-scenes#content-a-possible-solution

Instead of trying to write a super parser, what if we could convert our Blade and Antlers documents into something that could be formatted using existing tools like Prettier or Beautify HTML? Let's consider this more straightforward Blade example:...

/site-essentials-for-statamic/v1/generating-favicons

…enerate favicons using the Favicons facade: 1 <?php 2   3 use Stillat\StatamicSiteEssentials\Support\Facades\Favicons ; 4   5 Favicons :: generate (); Typical use-cases for doing this are listening for changes to assets contained in a global set,...

/blog/2018/02/19/laravel-5-the-translators-file-loader

…n into issues where language keys are not resolved from the JSON files when using dot notation. However, we can emulate the dot notation syntax that is used to retrieve nested translation strings from PHP-based files by providing the dot notation...

/blog/2023/04/10/creating-a-custom-statamic-layout-tag#content-researching-statamics-layout-behavior

Before we can implement our custom layout behavior, we must determine how Statamic does this internally. Through source diving, we will find that Statamic utilizes instances of the Statamic\View\View class when rendering Antlers views. Of...