Ash Allen's Avatar

Ash Allen

@ashallendesign.co.uk

πŸš€ Freelance Laravel Web Developer and Blogger ⚑ https://battle-ready-laravel.com πŸ”₯ https://consuming-apis-in-laravel.com ✨ https://web-dev-freelancing.com

1,349 Followers  |  82 Following  |  254 Posts  |  Joined: 23.10.2024  |  1.8628

Latest posts by ashallendesign.co.uk on Bluesky

Thanks! Hopefully it might come in handy for one of your projects in the future πŸ€žπŸ˜„

29.07.2025 08:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Favicon Fetcher 3.9.0 released! πŸŽ‰

On Friday, I tagged and released a new version of my Favicon Fetcher package. You can now grab favicons in your Laravel apps using DuckDuckGo's icon API πŸ˜„

28.07.2025 09:19 β€” πŸ‘ 7    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
Post image

⚑ You can use the "never" type as a return type in PHP!

This indicates that the function/method will never return. This is useful if your method always throws an exception or uses something like "exit" πŸ˜„

28.07.2025 08:53 β€” πŸ‘ 7    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Check if a Signed URL is Valid in Laravel Tests | Laravel.io The Laravel portal for problem solving, knowledge sharing and community building.

Check if a Signed URL is Valid in Laravel Tests by @ashallendesign.co.uk

https://laravel.io/articles/check-if-a-signed-url-is-valid-in-laravel-tests-1

30.06.2025 14:00 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
The "never" Type in PHP | Laravel.io The Laravel portal for problem solving, knowledge sharing and community building.

The "never" Type in PHP by @ashallendesign.co.uk

https://laravel.io/articles/the-never-type-in-php-1

02.07.2025 14:00 β€” πŸ‘ 4    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Preview
The "never" Type in PHP Learn about how to use the "never" type in PHP. We'll explore how to use it in your own code and look at a practical example of how it's used in the "symfony/var-dumper" package.

The "never" Type in PHP πŸš€

ashallendesign.co.uk/blog/php-nev...

01.07.2025 19:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I'm loving the new "Operating Sytem" tab on my Fathom dashboard! πŸ”₯

01.07.2025 16:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Check if a Signed URL is Valid in Laravel Tests Read about how you can verify that a URL is a signed URL in your Laravel tests.

Check if a Signed URL is Valid in Laravel Tests πŸš€

ashallendesign.co.uk/blog/check-i...

30.06.2025 09:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Woohoo! That's awesome, thanks πŸ˜„

30.06.2025 08:06 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Congrats to @ashallendesign.co.uk for becoming our first verified author! πŸ₯³

laravel.io/user/ash-jc-...

27.06.2025 12:04 β€” πŸ‘ 7    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
Preview
Implement Verified Author Logic for Publishing Without Review (#1276) by AbdulrahmanReda70 Β· Pull Request #1303 Β· laravelio/laravel.io Description This PR introduces the backend logic to support #1276: "Allow some article authors to publish without review". Changes Add verified_author_at column to users table with migra...

Thanks to GitHub user AbdulrahmanReda70 we now have the ability to verify article authors! Verified authors will get the ability to publish without a review. To get verified, regularly submit quality articles that get approved.

Here's the PR: github.com/laravelio/la...

27.06.2025 12:04 β€” πŸ‘ 3    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
Preview
Pass a Query Builder to "whereIn" to Reduce Your DB Queries | Laravel.io The Laravel portal for problem solving, knowledge sharing and community building.

Pass a Query Builder to "whereIn" to Reduce Your DB Queries by @ashallendesign.co.uk

https://laravel.io/articles/pass-a-query-builder-to-wherein-to-reduce-your-db-queries

23.06.2025 14:00 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Preview
Pass a Query Builder to "whereIn" to Reduce Your DB Queries Learn how to reduce your database queries by passing an instance of "Illuminate\Database\Query\Builder" to the "whereIn" method of your queries.

Pass a Query Builder to "whereIn" to Reduce Your DB Queries πŸš€

ashallendesign.co.uk/blog/laravel...

22.06.2025 10:09 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Asymmetric Property Visibility in PHP | Laravel.io The Laravel portal for problem solving, knowledge sharing and community building.

Asymmetric Property Visibility in PHP by @ashallendesign.co.uk

https://laravel.io/articles/asymmetric-property-visibility-in-php

16.06.2025 14:00 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Asymmetric Property Visibility in PHP Learn about how to use asymmetric property visibility (added in PHP 8.4) to define different visibility levels for reading and writing properties in PHP.

Asymmetric Property Visibility in PHP πŸš€

ashallendesign.co.uk/blog/php-asy...

14.06.2025 09:22 β€” πŸ‘ 8    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0

Nice! Yeah, I think that sounds like a fair approach πŸ˜„

13.06.2025 16:14 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

There's nothing wrong with only supporting 8.4! At the end of the day, it's you that's got to maintain and update the package. So you've got to make sure it's not going to be too much of a burden for you haha πŸ˜„

13.06.2025 16:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Nice! I think that sounds like a sensible approach πŸ˜„

13.06.2025 16:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Purely hypothetical question...

Say you're creating a new PHP package/library. All the code in it is 100% compatible with PHP 8.0 - 8.4.

What's the minimum PHP version you'd support? πŸ€”

13.06.2025 15:49 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 4    πŸ“Œ 0
Preview
Formatting Monetary Values in JavaScript Learn how to format monetary values in JavaScript using the "toLocaleString" method and "Intl.NumberFormat" object.

Formatting Monetary Values in JavaScript πŸš€

ashallendesign.co.uk/blog/formatt...

13.06.2025 08:55 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I've just finished writing an article about Asymmetric Visibility in PHP!

I'm hoping to publish it tomorrow πŸ˜„

πŸ‘‰ Question: Have you used asymmetric visibility in your PHP code yet?

12.06.2025 16:13 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Check Every Key Exists in a PHP Array with Arr::hasAll() | Laravel.io The Laravel portal for problem solving, knowledge sharing and community building.

Check Every Key Exists in a PHP Array with Arr::hasAll() by @ashallendesign.co.uk

https://laravel.io/articles/check-every-key-exists-in-a-php-array-with-arrhasall

12.06.2025 14:00 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Cast Laravel Model Fields to "Illuminate\Support\Uri" with "AsUri" | Laravel.io The Laravel portal for problem solving, knowledge sharing and community building.

Cast Laravel Model Fields to "Illuminate\Support\Uri" with "AsUri" by @ashallendesign.co.uk

https://laravel.io/articles/cast-laravel-model-fields-to-illuminatesupporturi-with-asuri

11.06.2025 14:00 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

I love that analogy! πŸ˜„

12.06.2025 15:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

There's nothing wrong with that haha! I really enjoy writing the articles, so I'm always happy to do them as much as possible πŸ˜„

12.06.2025 15:56 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thanks Ron! You have no idea how much that means to me πŸ˜„

12.06.2025 15:55 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

⚑ As of Laravel 12.18, you can use the new "UsePolicy" attribute to explicitly define the policy that should be used for a model.

This can be useful if you don't store your policies in the default directories πŸ˜„

12.06.2025 15:32 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Check Every Key Exists in a PHP Array with Arr::hasAll() Read about how to use the "Arr::hasAll" method (added in Laravel 12.16) in your Laravel applications to ensure a given array contains every key.

Check Every Key Exists in a PHP Array with Arr::hasAll() πŸš€

ashallendesign.co.uk/blog/arr-has...

12.06.2025 09:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

As of Laravel 12.18, you can use the new "encrypt" and "decrypt" methods on the Illuminate\Support\Stringable class πŸ”₯

This will be useful if you're chaining any string operations!

A cool contribution by Hristijan Manasijev πŸ˜„

11.06.2025 11:29 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I've just hit SEND on my latest newsletter issue!

It should be landing in your inbox any minute now 😎

10.06.2025 13:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@ashallendesign.co.uk is following 20 prominent accounts