Search

Showing 7 of 2,041 result(s)

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-selectively-locking-content-behind-a-paywall

In the previous section we implemented a custom Antlers tag that can be used to block access to content entirely if the current user does not have an active billing subscription. It works, but does not make things easy if we want to have a mix of...

/blog/2023/09/04/implementing-a-custom-blade-precompiler-for-laravel-volt-and-livewire#content-getting-started-setting-up-our-blade-precompiler

Starting with a fresh Laravel application, we need to install two new dependencies. The first will be Volt, which will also add Livewire to our project for us: composer require livewire/volt The second dependency we will use is a Blade parser...

/blog/2022/11/01/a-beginners-guide-to-antlers-arrays-and-loops#content-looping-keyvalue-pairs

In the previous section, we learned that creating a tag pair from an associative array or YAML map will extract the nested key/value pairs into new variables. However, there are times when it is desirable to loop over an associative array and...

/blog/2014/10/18/thoughts-on-a-guidance-engine#content-a-guidance-engine

A lot of people probably though of search engines at the end of that last section. After all, that is what search engines are supposed to do: expose content from around the web. However, I find search engines distracting. For one thing, you may...

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

In this section we update our Stripe configuration to refer to the products we created within the Stripe dashboard in a previous step. Within the Stripe dashboard, select the "Products" option in the left menu, and then locate the product you...

/blog/2018/02/19/laravel-5-string-pluralization-syntax#content-examples-of-specific-numbers

The following table will show more examples of handling specific numbers when dealing with pluralization translation. The table will use the following translation message definition: Count Result 0 There are no books! 1 You have one, two or three...

/blog/2023/04/10/creating-a-custom-statamic-layout-tag#content-implementing-our-layout-tag

…owever, if we have the following Antlers template, the wildcard method will be called, and the $tag argument will be set to my-layout : {{ layout:my-layout }} Each method ultimately calls the protected setLayout method, which calls the layout...