Search

Showing 7 of 1,697 result(s)

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-update-your-statamic-3-site-to-use-database-users

….). In one terminal window I am running: php artisan serve Which produces output similar to this: In the second terminal window I issued the following command to have Expose make the site publicly available for later in the tutorial:...

/blog/2018/04/11/laravel-5-creating-combinations-of-elements-with-crossjoin

…signature of the crossJoin method is: If you are unfamiliar with the ...$arrays syntax, this is PHP's variable-length argument syntax. It allows developers to accept any number of arguments; these will be passed to the inner function via the...

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

…an define a range of numbers to include for the translation line by enclosing the rule within square brackets ( [ and ] ). The lower bounds of the range is listed first, and the upper-bounds of the range is listed second, with the range...

/blog/2017/09/29/building-a-simple-statamic-request-addon#content-creating-the-tag-method

Now that we have an empty tag addon class to work with, let's quickly recap what we want this addon tag to do: what we want to be able to do is determine if a URL query parameter exists. The first thing that I like to do is decide how the addon...

/blog/2014/07/28/laravel-paginator-pretty-urls#content-creating-our-own-make-method

We are going to need to resolve some things out of the IoC, so make sure to use the Illuminate\Support\Facades\App facade. In our PrettyPaginator class, add the following function: its kind of scary, but I'll explain it. When we call the...

/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic-part-five

…ith a few helper methods sprinkled in to get these details later. In app/HybridCache/Manager.php : And the corresponding changes to our facade. In app/HybridCache/Facades/HybridCache.php : Before we add our cache labels, let us update our...

/blog/2022/11/01/a-beginners-guide-to-antlers-arrays-and-loops#content-working-with-neighboring-elements

The two automatic array variables we have not yet looked at are the next and prev variables. These two variables provide a convenient way to access the next and previous elements of the array, respectively. For example, if we had the following...