The Blog

JavaScript

Disabling Vite File Hashes

John Koster
John Koster
November 27, 2023

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

Laravel

Implementing a Custom Laravel Blade Precompiler for Volt and Livewire

John Koster
John Koster
September 4, 2023

Learn how to implement a custom component compiler for Laravel's Blade templating language in this post. We will build a custom compiler that transforms custom component syntax into a Livewire component, leveraging new features provided by Volt. Follow along as we set up the Blade precompiler and parse custom Blade component syntax. Get started by grabbing the example code on GitHub, and don't forget to install the necessary dependencies.

Statamic

Creating a Hybrid Cache System for Statamic: Part Five

John Koster
John Koster
September 3, 2023

Part 5 of 6 covers implementing a cache namespace and labeling system, which we can use to target multiple cache entries simultaneously for invalidation.

Statamic

Creating a Hybrid Cache System for Statamic: Part Four

John Koster
John Koster
September 3, 2023

Part 4 of 6 covers implementing new features to set arbitrary expiration times from within a template and mechanisms to invalidate all cached responses at once.

Statamic

Creating a Hybrid Cache System for Statamic: Part Six

John Koster
John Koster
September 3, 2023

Part 6 of 6 covers implementing custom Artisan commands to retrieve information about our cache, invalidating responses returned from Laravel routes and controllers, excluding pages with CSRF tokens, and examples of how to integrate with third-party systems like Torchlight.

Statamic

Creating a Hybrid Cache System for Statamic: Part Three

John Koster
John Koster
September 3, 2023

Part 3 of 6 covers managing response headers, configuring the custom cache system, and implementing mechanisms to bypass the cache entirely.

Statamic

Creating a Hybrid Cache System for Statamic: Part Two

John Koster
John Koster
September 3, 2023

Part 2 of 6 covers invalidating cached responses when template changes are detected and detecting request content dependencies, such as entries, taxonomies, and assets.

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.

Latest posts

Where Things get Good: Moving on to Forte Development Phase 1

Wrapping up Forte Phase 0 with the lexer and parser now in private alpha, and kicking off Phase 1 wi...

Read more
Forte Update: Backtracking, Metadata, HTML Validation, and More

A Forte development update: the parser now supports backtracking, improvements to node metadata, ide...

Read more
Parsing HTML and Blade Attributes in Forte

Wrapping up attribute parsing in Forte's HTML parser, from simple HTML attributes to complex, edge-c...

Read more
Switch Statements and Parser Extensions in Forte

Exploring how Forte's parser extensions can be used to handle complex Blade directives like nested s...

Read more
Parsing Blade Comments in Forte

Digging into parsing Blade and HTML comments while building Forte's HTML parser for Laravel Blade.

Read more
Thoughts on HTML Elements and Blade Components in Forte

This week I’m tackling Forte's HTML parser - consolidating Blade, Flux, and Livewire components into...

Read more