Blog

  1. Read the latest blog posts about Laravel, PHP and web development!

Get your FREE copy of "The Clean Coder's Guide to Laravel" and subscribe for future posts!

Join over 7,500+ developers who have already downloaded their copy!

Drop your email in the box below and you'll get notified every time a new post is published. You'll also get a FREE copy of my 70 page PDF that shows you how you can make your Laravel projects cleaner.

Subscribe

Search

CTRL/ mac-command + K Sort by:LatestPopularTrending

_small.png)](/content/blog/laravel-benchmark-class/index.html)22 Jan

7 mins

Measuring Performance with the "Benchmark" Class in Laravel

0 Comments

Laravel PHP Tips & Tricks Web Development

Ashley Allen ·

22nd January 2026

_small.png)](/content/blog/laravel-cache-memo/index.html)21 Jan

5 mins

Reduce Duplicate Cache Queries in Laravel with "Cache::memo()"

0 Comments

🔥 Quickfire

Ashley Allen ·

21st January 2026

20 Jan

7 mins

How to Send Telegram Messages in Laravel

0 Comments

Ashley Allen ·

20th January 2026

19 Jan

9 mins

Memoisation in Laravel Using the "once" Helper

0 Comments

Ashley Allen ·

19th January 2026

16 Jan

2 mins

Using AI to Build a Laravel Feature with Junie in PhpStorm

0 Comments

AI Laravel PHP Web Development

Ashley Allen ·

16th January 2026

18 Dec

7 mins

Formatting PHP Code with PHP CS Fixer

2 Comments

PHP Tips & Tricks Tutorial Web Development

Ashley Allen ·

18th December 2025

20 Nov

5 mins

The Difference Between ?: and ?? in PHP

3 Comments

PHP Tips & Tricks Web Development

Ashley Allen ·

20th November 2025

17 Nov

5 mins

Immutable and Mutable Dates in PHP

0 Comments

Ashley Allen ·

17th November 2025

13 Nov

10 mins

Saloon vs Guzzle vs SDK vs Http Facade for Laravel API Integrations

0 Comments

Books Laravel PHP Tips & Tricks Web Development

Ashley Allen ·

13th November 2025

10 Nov

6 mins

Email Utilities for Laravel v1.0 Released! 🎉

0 Comments

Laravel PHP Web Development

Ashley Allen ·

10th November 2025

31 Oct

8 mins

Returning HTTP 404 Responses Instead of 403 for Unauthorised Access

2 Comments

Laravel PHP Security & Privacy Tips & Tricks Web Development

Ashley Allen ·

31st October 2025

29 Oct

4 mins

Run PHPUnit and Pest Tests Without Vite Assets in Laravel

0 Comments

🔥 Quickfire

Ashley Allen ·

29th October 2025

30 Sep

6 mins

The Dangers of Dynamic Method Calls in PHP

6 Comments

Ashley Allen ·

30th September 2025

18 Sep

5 mins

The `match` Expression in PHP

0 Comments

🔥 Quickfire

Ashley Allen ·

18th September 2025

16 Sep

4 mins

Check If a String is Valid JSON in PHP

0 Comments

🔥 Quickfire

Ashley Allen ·

16th September 2025

11 Sep

15 mins

A Guide to Serialization in PHP

0 Comments

Ashley Allen ·

11th September 2025

09 Sep

4 mins

Redactable Models v1.0 is Now Available!

0 Comments

Ashley Allen ·

9th September 2025

03 Sep

3 mins

Fetching Favicons using the DuckDuckGo Icons API in Laravel

0 Comments

Ashley Allen ·

3rd September 2025

07 Aug

3 mins

Create AI Agents in Laravel — The Simple Way

0 Comments

Revaz Ghambarashvili ·

7th August 2025

20 Jun

5 mins

The "never" Type in PHP

3 Comments

🔥 Quickfire

Ashley Allen ·

20th June 2025

18 Jun

3 mins

Check if a Signed URL is Valid in Laravel Tests

0 Comments

🔥 Quickfire

Ashley Allen ·

18th June 2025

16 Jun

3 mins

Pass a Query Builder to "whereIn" to Reduce Your DB Queries

2 Comments

🔥 Quickfire

Ashley Allen ·

16th June 2025

13 Jun

7 mins

Asymmetric Property Visibility in PHP

0 Comments

PHP PHP 8.4 Tips & Tricks Web Development

Ashley Allen ·

13th June 2025

09 Jun

3 mins

Check Every Key Exists in a PHP Array with Arr::hasAll()

0 Comments

🔥 Quickfire

Ashley Allen ·

9th June 2025

07 Jun

3 mins

Cast Laravel Model Fields to "Illuminate\Support\Uri" with "AsUri"

0 Comments

🔥 Quickfire

Ashley Allen ·

7th June 2025

14 Apr

13 mins

A Guide to Custom Model Casts in Laravel

0 Comments

Ashley Allen ·

14th April 2025

03 Apr

8 mins

Covariance and Contravariance in PHP

2 Comments

PHP Web Development

Ashley Allen ·

3rd April 2025

02 Apr

3 mins

Human-Readable File Sizes in Laravel (KB, MB, GB)

2 Comments

🔥 Quickfire

Ashley Allen ·

2nd April 2025

31 Mar

7 mins

Microservices in Laravel

0 Comments

Gary Clarke ·

31st March 2025

28 Mar

5 mins

Formatting and Spelling Ordinal Numbers in PHP and Laravel

0 Comments

Ashley Allen ·

28th March 2025

04 Mar

4 mins

How to Filter Profanity in Laravel with Squeaky

2 Comments

Ashley Allen ·

4th March 2025

17 Feb

6 mins

Preventing Destructive Commands from Running in Laravel

2 Comments

Ashley Allen ·

17th February 2025

[Access Route Model-Bound Models in Laravel Form Requests with "#[RouteParameter]"](/content/blog/laravel-route-parameter-attribute/index.html)09 Dec

5 mins

Access Route Model-Bound Models in Laravel Form Requests with "#[RouteParameter]"

0 Comments

Ashley Allen ·

9th December 2024

25 Nov

13 mins

Working with Images in Laravel Using Intervention Image

2 Comments

Ashley Allen ·

25th November 2024

30 Sep

19 mins

A Guide to Laravel Pipelines

4 Comments

Ashley Allen ·

30th September 2024

08 Sep

2 mins

Limit Eager Loaded Relationships on Laravel Models

0 Comments

🔥 Quickfire

Ashley Allen ·

8th September 2024

18 Aug

12 mins

PHP 8.4 Property Hooks

0 Comments

Ashley Allen ·

18th August 2024

18 Aug

4 mins

Find Outdated Composer Dependencies Using "composer outdated"

0 Comments

🔥 Quickfire

Ashley Allen ·

18th August 2024

18 Aug

5 mins

New Array Functions in PHP 8.4

0 Comments

Laravel PHP PHP 8.4 Tips & Tricks Web Development

Ashley Allen ·

18th August 2024

12 Aug

4 mins

Ensuring Environment Variables Are Set in Laravel

0 Comments

🔥 Quickfire

Ashley Allen ·

12th August 2024

05 Aug

4 mins

Profanify: Prevent Profanity in Your PHP Codebase

2 Comments

🔥 Quickfire

Ashley Allen ·

5th August 2024

28 Jul

6 mins

Redact Model Fields in Laravel

0 Comments

Ashley Allen ·

28th July 2024

21 Jul

6 mins

Named Arguments in PHP

0 Comments

Ashley Allen ·

21st July 2024

21 Jul

11 mins

Testing Saloon API Integrations in Laravel

0 Comments

Ashley Allen ·

21st July 2024

08 Jul

6 mins

Magic Constants in PHP

0 Comments

Ashley Allen · Last Updated At: 19th August 2024

[The #[Override] Attribute in PHP](/content/blog/php-attribute-override/index.html)05 Jul

6 mins

The #[Override] Attribute in PHP

0 Comments

Ashley Allen ·

5th July 2024

03 Jul

4 mins

Lawman: Pest Architecture Testing for Saloon API Integrations

0 Comments

Ashley Allen ·

3rd July 2024

03 Jul

3 mins

Specify Allowed URL Schemes in Short URL

0 Comments

🔥 Quickfire

Ashley Allen ·

3rd July 2024

02 Jul

17 mins

A Guide to PHP Attributes

2 Comments

Ashley Allen ·

2nd July 2024

10 Jun

4 mins

Validating Square Image Uploads in Laravel

0 Comments

🔥 Quickfire

Ashley Allen ·

10th June 2024

31 May

26 mins

Sending Email in Laravel with Mailgun

0 Comments

Laravel PHP Tips & Tricks Tutorial Web Development

Ashley Allen ·

31st May 2024

15 May

2 mins

Create Your Own Directory Project with Larafast

0 Comments

Laravel PHP Sponsored Web Development

Sergey Karakhanyan ·

15th May 2024

14 May

14 mins

Architecture Testing in Laravel with Pest

2 Comments

Ashley Allen ·

14th May 2024

09 May

7 mins

Why Are My Tests Failing?

0 Comments

Ashley Allen ·

9th May 2024

06 May

11 mins

Encrypting Queued Jobs, Notifications, Mail, and Listeners in Laravel

2 Comments

Ashley Allen ·

6th May 2024

22 Apr

4 mins

Find Open-Source Laravel/PHP Projects to Contribute to

0 Comments

Ashley Allen ·

22nd April 2024

13 Apr

10 mins

Working with DynamoDB in Laravel

0 Comments

Ashley Allen ·

13th April 2024

19 Mar

4 mins

Readonly Classes and Properties in PHP

0 Comments

Ashley Allen ·

19th March 2024

19 Mar

4 mins

Redacting Sensitive Parameters in PHP

0 Comments

Ashley Allen ·

19th March 2024

19 Mar

6 mins

Data Transfer Objects (DTOs) in PHP

0 Comments

Ashley Allen ·

19th March 2024

13 Mar

4 mins

Larafast: Launch Your Startup Fast with Laravel

0 Comments

Sergey Karakhanyan ·

13th March 2024

03 Mar

5 mins

Validate Data Types in Laravel Collections Using the `ensure()` Method

0 Comments

🔥 Quickfire

Ashley Allen ·

3rd March 2024

26 Feb

15 mins

Identifying Performance Issues in Laravel with Inspector

0 Comments

Ashley Allen ·

26th February 2024

06 Feb

24 mins

Processes and Artisan Commands in Laravel

0 Comments

Ashley Allen ·

6th February 2024

30 Jan

9 mins

Display Desktop Notifications in PHP CLI Applications

2 Comments

Ashley Allen ·

30th January 2024

08 Jan

6 mins

How to Check If a Laravel Collection Is Empty

0 Comments

🔥 Quickfire

Ashley Allen ·

8th January 2024

08 Jan

5 mins

How to Check If an Array Is Empty in PHP

1 Comment

🔥 Quickfire

Ashley Allen ·

8th January 2024

11 Dec

21 mins

Securing Laravel forms using Cloudflare's Turnstile CAPTCHA

0 Comments

Laravel PHP Security & Privacy Tutorial Web Development

Ashley Allen ·

11th December 2023

16 Oct

25 mins

A Guide to Feature Flags in Laravel Using Laravel Pennant

0 Comments

Laravel PHP Tutorial Web Development

Ashley Allen ·

16th October 2023

04 Oct

5 mins

Saloon SDK Generator

0 Comments

Helge Sverre ·

4th October 2023

03 Oct

6 mins

Consuming APIs In Laravel is Now Available! 🎉

0 Comments

Books Laravel PHP

Ashley Allen ·

3rd October 2023

21 Sep

18 mins

A Guide to Soft Deletes in Laravel

0 Comments

Ashley Allen ·

21st September 2023

30 Aug

3 mins

Unlock Your Full Potential with "The Battle Ready Programmer" Bundle

0 Comments

Ashley Allen ·

30th August 2023

07 Aug

13 mins

A Guide to Encryption and Hashing in Laravel

0 Comments

Ashley Allen ·

7th August 2023

27 Jul

3 mins

Behind the Dev: Diana Scharf

0 Comments

Behind the Dev Laravel PHP

Ashley Allen ·

27th July 2023

20 Jul

5 mins

Behind the Dev: Stephen Rees-Carter

0 Comments

Ashley Allen ·

20th July 2023

23 Jun

3 mins

Hyvor Blogs: A blogging platform for Laravel & Symfony Applications

0 Comments

Supun Wimalasena ·

23rd June 2023

12 Jun

3 mins

Behind the Dev: Caneco

0 Comments

Ashley Allen ·

12th June 2023

12 Jun

24 mins

A Guide to Using Websockets in Laravel

0 Comments

Ashley Allen ·

12th June 2023

-min_small.png)](/content/blog/top-hosting-providers-for-php-laravel/index.html)25 May

7 mins

Top Hosting Providers for PHP and Laravel (2024)

4 Comments

Ashley Allen · Last Updated At: 2nd January 2024

25 May

16 mins

Integrating Two-Factor Authentication in Laravel with Vonage

0 Comments

Ashley Allen ·

25th May 2023

24 May

4 mins

Behind the Dev: Joe Dixon

0 Comments

Ashley Allen ·

24th May 2023

18 May

2 mins

Introducing Eddy: The Splade demo app, now open source!

0 Comments

Pascal Baljet ·

18th May 2023

04 May

7 mins

How to Get the Logged In User in Laravel

0 Comments

🔥 Quickfire

Ashley Allen · Last Updated At: 2nd January 2024

03 May

5 mins

Behind the Dev: Jim Seconde

2 Comments

Ashley Allen ·

3rd May 2023

20 Apr

9 mins

A Beginner's Guide to Closures and Arrow Functions in PHP

13 Comments

Ashley Allen · Last Updated At: 2nd January 2024

18 Apr

6 mins

Using `declare(strict_types=1)` for More Robust PHP Code

0 Comments

🔥 Quickfire

PHP Tips & Tricks

Ashley Allen · Last Updated At: 2nd January 2024

13 Apr

5 mins

Advanced Laravel: Contracts and Implementations

1 Comment

Jordan Dalton ·

13th April 2023

22 Feb

9 mins

Send WhatsApp Messages in Laravel With Vonage's Native SDK

0 Comments

Ashley Allen ·

22nd February 2023

11 Jan

4 mins

Preventing Installing Composer Dependencies with Known Security Vulnerabilities

0 Comments

🔥 Quickfire

PHP Security & Privacy Tips & Tricks

Ashley Allen · Last Updated At: 2nd January 2024

11 Jan

7 mins

The Difference Between self::, static::, and parent:: in PHP

10 Comments

Ashley Allen · Last Updated At: 2nd January 2024

06 Jan

7 mins

8 Essential Questions to Ask Before Using a Laravel Package

0 Comments

Ashley Allen ·

6th January 2023

06 Jan

2 mins

Top 37 YouTube Channels for Laravel and PHP Developers

3 Comments

Business Laravel PHP

Ashley Allen · Last Updated At: 2nd January 2024

04 Jan

4 mins

Standard API Responses With Laravel Responsables

0 Comments

Wendell Adriel ·

4th January 2023

01 Nov

4 mins

Behind the Dev: Matt Stauffer

0 Comments

Ashley Allen ·

1st November 2022

20 Oct

3 mins

Behind the Dev: Bosun Egberinde

0 Comments

Ashley Allen ·

20th October 2022

11 Oct

7 mins

Behind the Dev: Pascal Baljet

1 Comment

Ashley Allen ·

11th October 2022

10 Oct

13 mins

Working with Markdown in PHP

0 Comments

PHP Tutorial Web Development

Ashley Allen ·

10th October 2022

06 Oct

4 mins

Behind the Dev: Christoph Rumpel

0 Comments

Ashley Allen ·

6th October 2022

05 Oct

8 mins

Laravel Package Development with Local Composer Dependencies

5 Comments

🔥 Quickfire

Laravel PHP Tutorial

Ashley Allen · Last Updated At: 2nd January 2024

05 Sep

2 mins

Battle Ready Laravel

0 Comments

Ashley Allen ·

5th September 2022

09 Aug

6 mins

Behind the Dev: Luke Downing

0 Comments

Ashley Allen ·

9th August 2022

03 Aug

5 mins

Behind the Dev: Dan Harrin

7 Comments

Ashley Allen ·

3rd August 2022

25 Jul

3 mins

Top 39 Laravel & PHP Blogs You Should Be Following

0 Comments

Ashley Allen · Last Updated At: 6th June 2024

30 Jun

8 mins

Send an SMS in Laravel Using Vonage (Previously Nexmo)

0 Comments

Ashley Allen ·

30th June 2022

07 Jun

9 mins

How to Create Short URLs in Laravel

2 Comments

Ashley Allen · Last Updated At: 2nd January 2024

03 Jun

9 mins

Round Up: May 2022

0 Comments

Laravel PHP Round Up

Ashley Allen ·

3rd June 2022

26 May

12 mins

A Complete Guide to Managing User Permissions in Laravel Apps

0 Comments

Ashley Allen ·

26th May 2022

05 May

9 mins

How to Get Website's Favicons in Laravel

0 Comments

Ashley Allen · Last Updated At: 2nd January 2024

04 May

9 mins

Round Up: April 2022

0 Comments

Ashley Allen ·

4th May 2022

03 May

13 mins

20 Useful Laravel Tips

5 Comments

Laravel PHP Tips & Tricks

Ashley Allen ·

3rd May 2022

22 Apr

4 mins

What's New in Short URL v7.0.0

0 Comments

🔥 Quickfire

Laravel PHP

Ashley Allen · Last Updated At: 2nd January 2024

19 Apr

6 mins

What's New in Laravel Config Validator v2.0.0 & v2.1.0

0 Comments

🔥 Quickfire

Laravel PHP

Ashley Allen ·

19th April 2022

01 Apr

8 mins

Round Up: March 2022

0 Comments

Ashley Allen ·

1st April 2022

01 Mar

11 mins

Round Up: February 2022

0 Comments

Ashley Allen ·

1st March 2022

01 Feb

8 mins

Round Up: January 2022

0 Comments

Ashley Allen ·

1st February 2022

01 Dec

14 mins

Type Safe Package for PHP

0 Comments

PHP Web Development

Ashley Allen ·

1st December 2021

21 Sep

9 mins

Using Database Transactions to Write Safer Laravel Code

4 Comments

Ashley Allen ·

21st September 2021

23 Aug

7 mins

How to Add Breadcrumbs to Your Laravel Website

0 Comments

Laravel PHP Tips & Tricks Tutorial Web Design Web Development

Ashley Allen · Last Updated At: 2nd January 2024

17 Aug

4 mins

How to Assert Redirects to Signed URLs in Laravel Tests

0 Comments

Ashley Allen ·

17th August 2021

29 Jul

7 mins

Interfaces vs Abstract Classes in PHP

6 Comments

PHP Web Development

Ashley Allen · Last Updated At: 2nd January 2024

[The Clean Coder's Guide to Laravel [FREE 70 Page PDF]](/content/blog/the-clean-coders-guide-to-laravel-free-70-page-pdf/index.html)14 Jul

2 mins

The Clean Coder's Guide to Laravel [FREE 70 Page PDF]

87 Comments

Ashley Allen ·

14th July 2021

08 Jun

10 mins

Using Interfaces to Write Better PHP Code

6 Comments

Ashley Allen · Last Updated At: 2nd January 2024

1