I'm Working on a New Book Project Feb 18, 2024
The PHP Spellbook: Practical Charms for Data Structures & Algorithms is a light-hearted, down-to-earth journey through the magical work of data types and algorithms for all PHP developers.
Disabling Vite File Hashes Nov 27, 2023
Disabling file hashes in Vite output can be accomplished by modifying your project's vite.config.js
Implementing a Custom Laravel Blade Precompiler for Volt and Livewire Sep 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.
Creating a Hybrid Cache System for Statamic: Part Six Sep 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.
Creating a Simple Honeypot Field in Laravel Apr 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.