Showing 7 of 2,041 result(s)
There are two primary ways to trigger favicon image generation: using the command line and programmatically, such as from listening to Statamic events. Before we can generate favicons, we need to let Site Essentials for Statamic know what image to...
So we know how to get the input from the user, but how do we handle the occasional situation where we have ambiguous input? For example say we have a form field named name set to John Doe for a user's name using a POST request. In addition we also...
Our first example will be to create our middleware to check for the presence and value of the honeypot field. If the honeypot field is not empty, the middleware will block the request and return a 403 Forbidden response. Depending on your...
A common requirement when designing and implementing software is the ability to respond to certain code conditions, or at key points in an application's execution lifecycle. These conditions and lifecycle points can be thought of as events , where...
In this section, we will adapt some core Statamic tags to suit our cache management needs better, specifically focusing on populating our cache namespaces and labels. Luckily, if we create a custom Antlers tag in our project that shares a handle...
Like in the previous article, we will create a custom Antlers tag that will throw an exception whenever it is encountered. We will use this tag to be able to easily test our custom error page later. Statamic's please command line utility will be...
While it is simple to create custom Artisan commands there are other times where it may be necessary to customize the core console application further. The Artisan console application ( Illuminate\Console\Application ) extends Symfony's console...