Ash Allen
banner
ashallendesign.co.uk
Ash Allen
@ashallendesign.co.uk
As of Laravel 12.36, you can use the "File::allDirectories" method to get an array of all nested directories (including nested directories) within a given path 🔥
November 7, 2025 at 4:27 PM
As of Laravel 12.29, you can use the "UseResource" and "UseResourceCollection" attributes to explicitly define the resource class and resource collection class a Laravel model should use 🔥
November 6, 2025 at 5:43 PM
Yesterday, I booted up my Ubuntu PC for the first time in a year or so!

I forgot how much I enjoyed using Ubuntu as my daily driver for dev work.

If more of the software/tools I want to use were available on there, I think I'd switch back in a heartbeat 😄
October 29, 2025 at 8:00 PM
Did you know PHP 8.5 adds a new FILTER_THROW_ON_FAILURE option for the `filter_var` function?

If the `filter_var` validation fails, it will trigger an exception to be thrown 🔥
October 29, 2025 at 2:12 PM
Run PHPUnit and Pest Tests Without Vite Assets in Laravel 🚀

ashallendesign.co.uk/blog/laravel...
Run PHPUnit and Pest Tests Without Vite Assets in Laravel
Read about how to use the "withoutVite" method in your Laravel apps to disable Vite during your PHPUnit and Pest tests.
ashallendesign.co.uk
October 29, 2025 at 8:30 AM
Reposted by Ash Allen
Laravel Exchange Rates by @ashallendesign.co.uk allows you to get exchange rates & convert values between different currencies 💸🔄 - madewithlaravel.com/laravel-exch...
October 18, 2025 at 11:05 AM
Imagine you have to build a frontend for a web app, and you can only choose between Vue and React...

Which one are you choosing? 👀
October 15, 2025 at 4:10 PM
I've just released an early version of a small package so I can use these rules in my projects 😄

Repo: github.com/ash-jc-allen...

P.s. - I'd be forever grateful if you could star the repo ⭐
October 8, 2025 at 11:11 PM
Always the best emails to receive!

Huge thank you to everyone who's bought any of my books over the past 3 years. Your support means the world to me 🩵

I hope they've been useful and taught you new things!
October 8, 2025 at 3:23 PM
Unfortunately, the PR was closed and didn't get merged! 😭

I'm thinking of building a small package which includes some extra email validation rules. So I'll add these two methods to it! 😄
I've just made a PR to Laravel to add 2 new email validation rules: "domainIs" and "domainIsNot"

I don't know whether they'd be helpful to others, but they're something I'd definitely use 😄

What do you think?
October 8, 2025 at 9:23 AM
I've just made a PR to Laravel to add 2 new email validation rules: "domainIs" and "domainIsNot"

I don't know whether they'd be helpful to others, but they're something I'd definitely use 😄

What do you think?
October 6, 2025 at 10:33 PM
Laravel devs, when you're creating new commands, do you add the "Command" suffix to the classname?

E.g., which of these would you choose?

👉 App\Console\Commands\SendReports
👉 App\Console\Commands\SendReportsCommand

P.s. - I've ignored sub-folders. The question is solely on the "Command" suffix 😄
October 6, 2025 at 3:49 PM
I've just released v1.1.0 of my Redactable Models package! 🎉

You can now set the hashing algorithm that should be used by the "HashContents" redaction strategy.

In this example, we're SHA256-ing the "name" and "email" fields of users who were soft-deleted over 30 days ago 😄
September 25, 2025 at 9:14 AM
Did you know you can encrypt the payloads of your queued classes in Laravel?

It's as simple as implementing the `ShouldBeEncrypted` interface 🔥

You can use it with:

✅ Jobs
✅ Notifications
✅ Mailables
✅ Listeners
September 24, 2025 at 3:50 PM
I keep seeing mentions of the Tempest PHP framework online. And from what I've seen, it looks pretty cool!

I'm tempted to give it a spin locally and see what it's like!

I especially like the look of the typed properties on models and the attributes for adding validation 😄
September 19, 2025 at 2:20 PM
Did you know about the "non-empty-list" PHPStan annotation?

I use "list" on an almost daily basis, but only just learned about "non-empty-list" today 🤯

I think this could be super useful, so I'm gonna start using it in my code from now on 😄
September 17, 2025 at 4:40 PM