The Blog

Laravel

Laravel

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

John Koster
John Koster
August 12, 2025

A Forte development update: the parser now supports backtracking, improvements to node metadata, identifiers, and improvements to mixed Blade/HTML parsing.

Laravel

Parsing HTML and Blade Attributes in Forte

John Koster
John Koster
August 11, 2025

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

Laravel

Switch Statements and Parser Extensions in Forte

John Koster
John Koster
August 9, 2025

Exploring how Forte's parser extensions can be used to handle complex Blade directives like nested switch statements with a cleaner, more flexible, and easily extendable approach.

Laravel

Parsing Blade Comments in Forte

John Koster
John Koster
August 8, 2025

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

Laravel

Thoughts on HTML Elements and Blade Components in Forte

John Koster
John Koster
August 7, 2025

This week I’m tackling Forte's HTML parser - consolidating Blade, Flux, and Livewire components into one flexible system. Here's what’s working (and what's next).

Laravel

Laracon, Blade and What's Next

John Koster
John Koster
August 6, 2025

Recapping Laracon in Denver with the Statamic team, this post introduces Forte - a new Blade extensibility framework designed to simplify parsing and empower Laravel developers

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.

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.

Laravel

Announcement: All Of the Laravel Articles Are Free

John Koster
John Koster
July 22, 2017

Discover the journey behind "Laravel Artisan: An In Depth Coverage of Laravel Features." Find out why the project was eventually converted into free blog posts on the website. Explore the author's other projects and the motivation behind the switch to a new site. Don't miss the free resource, "Laravel Companion: A Guide to Helpers, Collections And More."

Laravel

Command Interoperability and Laravel Artisan Applications

John Koster
John Koster
December 7, 2016

Learn how to execute Artisan commands from within other Artisan commands in Laravel. Use the call and callSilent methods to call other commands and return the exit code. Pass arguments and options to the called commands using arrays. Output from called commands can be hidden by using the callSilent method. Commands can also be called from other locations within the application's code base by injecting the console kernel or using the Artisan facade. Operating system calls can be made using Symfony's Process component, which is already available in Laravel. Handle process output by supplying a callback function to the process's run method.

Latest posts

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
Laracon, Blade and What's Next

Recapping Laracon in Denver with the Statamic team, this post introduces Forte - a new Blade extensi...

Read more