Showing 7 of 2,041 result(s)
In this final section, we will look at integrating our custom cache system with other software packages. To do this, we will explore my favorite method of adding syntax highlighting to a website: Torchlight. Torchlight is a service that accepts...
The default behavior of the compiler is to treat all custom component tags as if they were "normal" Blade component tags. However, we can provide custom compilers for our specific component tag prefixes and return custom-compiled output. We create...
Hello, everyone! The last three-to-four months have been pretty busy on my end. After publishing my latest mega-series about a hybrid-cache system for Statamic , I started working on a new article series about writing a custom Statamic search...
…say it produces the output we expect because we know exactly what the input to the program should be; new users of our filter language are unlikely to be as familiar with it as we are, and are likely to become frustrated when the parser produces...
There are numerous ways to check if an array index is even or odd within an Antlers template. The first and simplest is to use the switch tag to alternate between two classes. We will use the data in Example 1.63 throughout this section: Example...
In this section, we will add some simple reporting features to our cache and two more Artisan commands. Our cache reporting will provide the total disk size of our cache, the number of cached responses, and some information about our cache...
Even though Laravel only provides a Illuminate\Contracts\Hashing\Hasher implementation for the bcrypt function, there are many more hashing functions that are available to developers. The following functions are available through the use of PHP's...