Ash Allen
banner
ashallendesign.co.uk
Ash Allen
@ashallendesign.co.uk
Reduce Duplicate Cache Queries in Laravel with "Cache::memo()" 🚀

ashallendesign.co.uk/blog/laravel...
Reduce Duplicate Cache Queries in Laravel with "Cache::memo()"
Learn about how to use the "Cache::memo()" method to memoise cache values and improve performance in your Laravel applications.
ashallendesign.co.uk
January 21, 2026 at 4:40 PM
⚡ You can use the "once" helper to memoise data in Laravel!

The result of the closure will be stored on the first call. Then all future calls will return the stored result.

When used in the right places, this can lead to some nice performance gains.
January 16, 2026 at 4:11 PM
I've just finished writing an article about memoisation in Laravel which covers:

👉 Using the "once" helper
👉 Using "once" in methods and static methods
👉 How "once" is handled in Octane apps
👉 Alternatives to "once"

Hoping to publish it on Monday 😄
January 16, 2026 at 2:09 PM
My latest freelance contract has just come to an end this week.

So I'm now available to take on new Laravel projects/work!

If you're on the lookout for a Laravel dev with plenty of experience, feel free to give me a shout! 😎
January 15, 2026 at 9:50 PM
What's the first package you install when you start a new Laravel project?

For me, it's usually Rector or PHPStan 😄
January 14, 2026 at 9:27 PM
Building a Laravel Feature with Junie in PhpStorm 🚀

P.s. - Please excuse the poor audio quality. I only realised during editing that I'd been using my Mac's mic rather than my actual mic. Ooops haha!

youtu.be/9HYYpuu_nXc?...
Building a Laravel Feature with Junie in PhpStorm
YouTube video by Ash Allen
youtu.be
January 14, 2026 at 4:39 PM
🔥 If you're using job batches in Laravel, the "job_batches" database table can grow quite quickly.

To solve this, you can schedule the "queue:prune-batches" command.

I've just added this to @findapr after I noticed the table contained a ton of old rows (approx 28k rows) 😄
January 8, 2026 at 1:55 PM
Fun little quiz:

Without cheating, what will the last line output in PHP?

This is something which used to catch me out all the time! 👀
January 7, 2026 at 6:16 PM
What level do you run PHPStan at in your projects?

I've personally found level 5 or 6 to be the sweet spot (especially when adding it to existing projects) 😄
December 9, 2025 at 8:01 PM
I've just hit a mini-milestone with my Email Utilities package:

It's crossed 100 stars on GitHub! ⭐

It's really close to hitting its first 1,000 downloads, too. I've just checked and it's been installed 995 times 👀
December 9, 2025 at 2:40 PM
I've just released Email Utilities for Laravel v1.1.0! 🎉

This release includes:

✅ Artisan command that can be used to update the disposable domain list (shown in the screenshot)
✅ Caching to improve performance
✅ An updated list of disposable domains (4932 domains!)

[1/2]
December 3, 2025 at 1:40 PM
The PR didn't get merged!

But I'm planning on writing an article soon to show how you can use Mailtrap for:

👉 Sending single emails in Laravel
👉 Sending bulk emails in Laravel
👉 Testing Laravel emails using Mailtrap sandboxes

Aiming to publish it next week 😄
I've just made a PR to Laravel to propose first-party support for sending transactional email with Mailtrap!

Is this something you might use? 😄

👉 PR: github.com/laravel/fram...
December 3, 2025 at 9:32 AM
I've just made a PR to Laravel to propose first-party support for sending transactional email with Mailtrap!

Is this something you might use? 😄

👉 PR: github.com/laravel/fram...
December 2, 2025 at 8:43 PM
I want to say a huge thank you to Mailtrap for sponsoring me on GitHub! 😄🎉

I've been using Mailtrap for a few years for email testing, and it's always been a great platform. So it's really cool that they're now sponsoring me!

Thanks! 🩵
November 24, 2025 at 1:12 PM