The Blog

Statamic

Creating a Hybrid Cache System for Statamic

John Koster
John Koster
September 3, 2023

Part 1 of 6 covers experimenting with various cache systems, techniques, and organization of our custom cache system.

Development Resources

Best Practices for Securing Your Development Projects

External Contribution
External Contribution
May 4, 2023

Securing development projects means integrating security at each stage of development. Let's discuss the best practices to secure your development projects.

Laravel

Creating a Simple Honeypot Field in Laravel

John Koster
John Koster
April 11, 2023

Learn how to implement a honeypot form mechanism using Laravel. This security measure helps catch bots and automated scripts by adding an inconspicuous form field that human users should leave empty. You can implement the honeypot in two different ways: by creating a custom middleware class or by adding the logic directly to the form's action. Additionally, you can create a custom Blade directive to simplify adding the hidden field to multiple forms.

Statamic

Swapping Antlers Layouts and Passing Data to Layouts

John Koster
John Koster
April 10, 2023

Discover how to create a custom Statamic Tag in this step-by-step guide, enabling dynamic layout changes and sharing variables with your layouts in Antlers templates. Learn the implementation process, utilize the make:addon command, and explore the internal workings of Statamic to master custom layout behavior.

Development Resources

How to Structure Your Cybersecurity Team to Work in an Agile Environment

External Contribution
External Contribution
February 10, 2023

Organizing a cybersecurity team with clear goals, skills assessment, role assignment, training, workload management, and a supervisor using agile methods helps protect against threats, improves efficiency, boosts innovation, and avoids burnout.

Statamic

A Beginners Guide to Antlers Arrays and Loops

John Koster
John Koster
November 1, 2022

This in-depth guide provides a beginner-friendly introduction to Antlers arrays and loops. In it, we look at the basics of Antlers arrays, techniques for working with named scopes and nested arrays, and methods for randomly inserting supplementary content into blog post listings.

Development Resources

Antlers and Blade Formatters: Behind the Scenes

John Koster
John Koster
July 18, 2022

This article provides a very brief overview of how both the Antlers and Blade formatters work. Both formatters are offered as a Prettier plugin.

Statamic

Creating Dynamic CSS Class Names with Statamic

John Koster
John Koster
May 29, 2022

Learn to construct dynamic CSS class names using Antlers sections when creating Statamic sites.

Statamic

Working With Dynamic Variables in Antlers Runtime

John Koster
John Koster
May 4, 2022

Antlers Runtime supports the concept of dynamic variables, which can be used to retrieve data dynamically, without knowing the variable name ahead of time.

Statamic

Managing Imported Fieldset Handles with Antlers Runtime

John Koster
John Koster
April 22, 2022

Antlers Runtime makes it easier to work with prefixed fieldsets when reusable fieldsets and partials.

Latest posts

That Escalated Quickly: All the New Things

The past six months or so have been incredibly busy. What started as a new article series about cust...

Read more
Troubleshooting a Statamic Illegal Offset Type Error when Viewing Collection Entries in the Control Panel

In this post I talk about how I resolved a mysterious illegal offset type error when viewing collect...

Read more
Creating Simple HTTP Redirect Routes from a Statamic Site

Generating a custom Laravel routes file from a Statamic website to redirect to a new domain.

Read more
Disabling Vite File Hashes

Disabling file hashes in Vite output can be accomplished by modifying your project's vite.config.js

Read more
Implementing a Custom Laravel Blade Precompiler for Volt and Livewire

Learn how to implement a custom component compiler for Laravel's Blade templating language in this p...

Read more
Creating a Hybrid Cache System for Statamic: Part Five

Part 5 of 6 covers implementing a cache namespace and labeling system, which we can use to target mu...

Read more