Blog

Articles on Laravel.
Statamic
How to use custom Laravel ValidationRule rules in Statamic Contributing support for Laravel’s newer validation rules opened up more flexible checks in Statamic, including reusable rules that accept their own configuration parameters. 5 Mar 2024 3 min read
Laravel
How to eager load relations for a model with Spatie’s Laravel Options Adding a related model’s attribute to an options list exposed an N+1 problem, and passing an eager-loaded query to Spatie’s Laravel Options package brought those database lookups under control. 15 Feb 2024 2 min read
Statamic
How to use Blink to improve complex tag performance in Statamic Running the same expensive lookup in several tag methods adds up quickly, and Statamic’s Blink cache helped me share the results across related operations within a single request. 9 Feb 2024 4 min read
Laravel
Setting up Laravel Pulse for multiple Authenticatable models (user types) An app with separate admin, teacher and student accounts needed more than a numeric user ID, so I adapted Pulse’s user resolution to recognise and retrieve all three models. 18 Jan 2024 6 min read
Statamic
“Statamic for Laravel Devs” at Laracon AU 2023 My Laracon AU 2023 talk paired a live Statamic demo with lessons from our development workflow, showing how content management can fit inside an existing Laravel app. 14 Dec 2023 3 min read
Laravel
PSA: update valetTls to detectTls in your vite.config.js for Laravel Herd Returning to a Vite project after moving to Herd exposed a Firefox certificate error, and replacing a deprecated configuration option got development assets loading correctly across browsers. 12 Dec 2023 3 min read
Statamic
How to use a scope with a query builder in Statamic A Feedamic feature request sent me looking at Statamic scopes, and how their reusable query logic could be applied to custom Query Builder instances outside the standard collection tag. 5 Dec 2023 4 min read
Statamic
Passing runtime data for a Form fieldtype in Statamic Some form fields need information that only exists when the page loads, so I contributed a way to pass runtime data into templates from the fieldtype’s server-side logic. 28 Nov 2023 3 min read
Personal
Hello from Laracon AU A conversation on a mountain walk became an abstract, then a talk, and suddenly I was in Sydney preparing to share Statamic with the Laravel community at Laracon AU. 15 Nov 2023 2 min read
Statamic
Form submission redirects in Statamic A fixed thank-you page isn’t always enough after a form submission, so I contributed support for redirects that can use the submitted data and work with JavaScript-based forms. 14 Nov 2023 6 min read