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

11 Jun

3 mins

Formatting Monetary Values in JavaScript

0 Comments

🔥 Quickfire

JavaScript Tips & Tricks Web Development

Ashley Allen ·

11th 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

28 Oct

14 mins

Building Livewire Components with Volt

0 Comments

Laravel Tips & Tricks Web Development

Ashley Allen ·

28th October 2024

30 Sep

19 mins

A Guide to Laravel Pipelines

4 Comments

Ashley Allen ·

30th September 2024

17 Sep

3 mins

Freelance Web Dev Hub: Free Community for Web Developers

0 Comments

Business Freelancing Web Development

Ashley Allen ·

17th September 2024

12 Sep

7 mins

Review: Advanced Inertia

2 Comments

Books JavaScript Laravel Web Development

Ashley Allen ·

12th September 2024

08 Sep

2 mins

Limit Eager Loaded Relationships on Laravel Models

0 Comments

🔥 Quickfire

Ashley Allen ·

8th September 2024

02 Sep

6 mins

The Web Dev's Guide to Freelancing (Pre-Order Now)

0 Comments

Books Business Freelancing Web Design Web Development

Ashley Allen ·

2nd September 2024

20 Aug

5 mins

Glimpse: Preview Your Laravel Pull Requests

0 Comments

Laravel Tips & Tricks Web Design Web Development

Larry Barker ·

20th August 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

23 Jul

22 mins

Building a CLI with Laravel Prompts

0 Comments

Laravel Tips & Tricks Tutorial Web Development

Ashley Allen ·

23rd 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

17 Apr

7 mins

Using the "Conditionable" Trait In Laravel

0 Comments

Ashley Allen ·

17th 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

06 Mar

3 mins

Using `Collection::times()` in Laravel

2 Comments

🔥 Quickfire

Ashley Allen ·

6th 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

23 Jan

5 mins

Automatically Hash Laravel Model Values Using the "Hashed" Cast

0 Comments

🔥 Quickfire

Laravel Security & Privacy Tips & Tricks Web Development

Ashley Allen ·

23rd 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

08 Jan

6 mins

How to Check If an Array Is Empty in JavaScript

0 Comments

🔥 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

23 Nov

2 mins

Auditing Laravel Apps: Getting Into the Right Mindset

0 Comments

🔥 Quickfire

Books Tips & Tricks Web Development

Ashley Allen ·

23rd November 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

21 Sep

18 mins

A Guide to Soft Deletes in Laravel

0 Comments

Ashley Allen ·

21st September 2023

07 Aug

13 mins

A Guide to Encryption and Hashing in Laravel

0 Comments

Ashley Allen ·

7th August 2023

23 Jun

3 mins

Hyvor Blogs: A blogging platform for Laravel & Symfony Applications

0 Comments

Supun Wimalasena ·

23rd 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

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

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

14 Apr

5 mins

Reading JSON Files in Laravel

2 Comments

🔥 Quickfire

Ashley Allen · Last Updated At: 2nd January 2024

13 Apr

5 mins

Advanced Laravel: Contracts and Implementations

1 Comment

Jordan Dalton ·

13th April 2023

11 Apr

5 mins

How to Create Custom Laravel Blade Directives

1 Comment

Ashley Allen · Last Updated At: 2nd January 2024

10 Apr

16 mins

Using the Manager Pattern in Laravel

0 Comments

Laravel Tutorial Web Development

Ashley Allen ·

10th April 2023

24 Mar

12 mins

Laravel Pipelines: Transforming Your Code into a Flow of Efficiency

0 Comments

Jordan Dalton ·

24th March 2023

08 Mar

6 mins

View Your Laravel Project's Broadcast Channels with the "channel:list" Command

0 Comments

Ashley Allen ·

8th March 2023

22 Feb

9 mins

Send WhatsApp Messages in Laravel With Vonage's Native SDK

0 Comments

Ashley Allen ·

22nd February 2023

24 Jan

5 mins

Laravel: Implementing Feature Flags

0 Comments

Peter Fox ·

24th January 2023

23 Jan

6 mins

collect.js: A Laravel-Like Syntax for JavaScript Arrays

6 Comments

Ashley Allen ·

23rd January 2023

23 Jan

17 mins

Why I Switched to Fathom Analytics

0 Comments

Business Web Design Web Development

Ashley Allen · Last Updated At: 2nd January 2024

11 Jan

10 mins

Don't Skimp on Security: Add These Must-Have Features to Your Web Apps

0 Comments

Security & Privacy Web Design Web Development

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

04 Jan

4 mins

Standard API Responses With Laravel Responsables

0 Comments

Wendell Adriel ·

4th January 2023

23 Nov

8 mins

Mass Assignment Vulnerabilities and Validation in Laravel

2 Comments

Ashley Allen · Last Updated At: 2nd January 2024

08 Nov

7 mins

How To Improve Your Laravel Development Skills By Reading Code

4 Comments

🔥 Quickfire

Ashley Allen · Last Updated At: 2nd January 2024

10 Oct

13 mins

Working with Markdown in PHP

0 Comments

PHP Tutorial Web Development

Ashley Allen ·

10th October 2022

05 Sep

2 mins

Battle Ready Laravel

0 Comments

Ashley Allen ·

5th September 2022

30 Jun

8 mins

Send an SMS in Laravel Using Vonage (Previously Nexmo)

0 Comments

Ashley Allen ·

30th June 2022

14 Jun

7 mins

The Benefits of Contributing to Open Source Projects

2 Comments

Web Design Web Development

Ashley Allen ·

14th June 2022

26 May

12 mins

A Complete Guide to Managing User Permissions in Laravel Apps

0 Comments

Ashley Allen ·

26th May 2022

23 May

15 mins

How to Validate Your Laravel App's Config

0 Comments

Laravel Web Development

Ashley Allen · Last Updated At: 22nd January 2024

05 May

9 mins

How to Get Website's Favicons in Laravel

0 Comments

Ashley Allen · Last Updated At: 2nd January 2024

10 Mar

19 mins

The Laravel Ecosystem

3 Comments

Laravel Web Development

Ashley Allen ·

10th March 2022

28 Feb

9 mins

An Introduction to Caching in Laravel

0 Comments

Ashley Allen ·

28th February 2022

01 Dec

14 mins

Type Safe Package for PHP

0 Comments

PHP Web Development

Ashley Allen ·

1st December 2021

01 Dec

8 mins

Using Semantic Elements to Improve Your HTML

0 Comments

Web Design Web Development

Ashley Allen · Last Updated At: 2nd January 2024

22 Nov

16 mins

A Guide to Error & Uptime Monitoring in Laravel Using Honeybadger

2 Comments

Ashley Allen ·

22nd November 2021

21 Oct

5 mins

Getting the User's Device, Browser & OS in Laravel

2 Comments

🔥 Quickfire

Ashley Allen ·

21st October 2021

14 Oct

6 mins

How to Get Currency Exchange Rates in Laravel

0 Comments

Ashley Allen ·

14th October 2021

22 Sep

3 mins

Using a Custom Alphabet in the Short URL Laravel Package

0 Comments

🔥 Quickfire

Ashley Allen · Last Updated At: 2nd January 2024

21 Sep

9 mins

Using Database Transactions to Write Safer Laravel Code

4 Comments

Ashley Allen ·

21st September 2021

18 Sep

5 mins

Do I Need to Write Tests for My Website?

0 Comments

🔥 Quickfire

Web Design Web Development

Ashley Allen ·

18th 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

03 Aug

8 mins

17 Ways to Get Your Website Ready to Win

0 Comments

Tips & Tricks Web Design Web Development

Ashley Allen · Last Updated At: 2nd January 2024

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

03 Jul

5 mins

How to Create Your Own Helper Functions in Laravel

7 Comments

Ashley Allen ·

3rd July 2021

25 Jun

10 mins

Cleaning Up Laravel Controllers

9 Comments

Ashley Allen ·

25th June 2021

17 Jun

6 mins

Using the Strategy Pattern in Laravel

0 Comments

Ashley Allen · Last Updated At: 2nd January 2024

08 Jun

10 mins

Using Interfaces to Write Better PHP Code

6 Comments

Ashley Allen · Last Updated At: 2nd January 2024

26 May

8 mins

5 Lessons I Learned from Building My Own Laravel Package

2 Comments

Laravel Web Development

Ashley Allen ·

26th May 2021

21 May

5 mins

How to Force Eager Loading and Prevent N+1 Issues in Laravel

1 Comment

Ashley Allen · Last Updated At: 2nd January 2024

11 May

5 mins

7 Top Tips for New Web Developers

0 Comments

Ashley Allen ·

11th May 2021

29 Apr

3 mins

How to Use the sole() Method on Laravel Collections

4 Comments

Ashley Allen ·

29th April 2021

21 Apr

3 mins

How to Swap Items in an Array Using Laravel Macros

0 Comments

Ashley Allen ·

21st April 2021

17 Mar

3 mins

How to Filter Laravel Collections Using whereInstanceOf

4 Comments

Ashley Allen ·

17th March 2021

29 Jan

8 mins

How to Make Your Laravel App More Testable

9 Comments

Ashley Allen ·

29th January 2021

05 Jan

7 mins

How to Validate Email Addresses using Laravel Mailbox Layer

0 Comments

Ashley Allen ·

5th January 2021

21 Oct

8 mins

Top 8 Free and Paid Resources for Learning Laravel

2 Comments

Ashley Allen ·

21st October 2020

04 Oct

11 mins

6 Quick & Easy Ways to Speed Up Your Laravel Website

7 Comments

Ashley Allen · Last Updated At: 2nd January 2024

21 Sep

12 mins

Should I Use Wordpress for My Website?

5 Comments

AUDIO VERSION AVAILABLE

Ashley Allen ·

21st September 2020

11 Sep

3 mins

Why Businesses Need a Mobile Responsive Website to Succeed and Increase Sales

0 Comments

Ashley Allen ·

11th September 2018

1