Showing 7 of 2,041 result(s)
In this section, we will work to implement one of the more impressive aspects of our custom cache system: invalidating cached content if any of the templates used to create the response have been modified or removed. Before diving into all of the...
The Collection class exposes a generous public API, consisting of many public methods that allow you to manipulate and transform the collections internal elements. The Collection API exposes methods for retrieving values from a collection,...
In this article we will explore the various ways to run the Laravel task scheduler. We will look at running the task scheduler on Mac OS as well as on Windows. There are two major ways to run the task scheduler. The first is to manually run the...
We will start our parser implementation by defining our characters as constants. We could simply write them as strings each time we need them in our code, but it is easy to make a mistake that way once things get going. We will build on the code...
In this section, we will work to implement the ability to set custom cache expiration durations from within our templates. The logic will be straightforward: We will provide utility methods, create an Antlers tag to specify a custom expiration,...
It is not an uncommon requirement to be able to insert additional content within a listing of collection entries. An example of this may be to insert an advertisement at specific locations or to randomly insert supplementary or featured content...
To begin this section we are going to first create a new Antlers partial which will give us a place to start placing our frontend code to test submitting reactions. We will continue updating this partial throughout the article to build out a...