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

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

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

03 Sep

3 mins

Fetching Favicons using the DuckDuckGo Icons API in Laravel

0 Comments

Ashley Allen聽路

3rd September 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

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

23 Oct

3 mins

How to Set Up Your Mac for Web Design

0 Comments

Sponsored Tips & Tricks Web Design

Mia Thompson聽路

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

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

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

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

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

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

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

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

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

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

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

23 Jan

6 mins

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

6 Comments

Ashley Allen聽路

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

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

05 Sep

2 mins

Battle Ready Laravel

0 Comments

Ashley Allen聽路

5th September 2022

21 Jun

13 mins

Adding Social Logins to Your Laravel Apps: Twitter and GitHub

0 Comments

Laravel Tips & Tricks Tutorial

Ashley Allen聽路

21st June 2022

14 Jun

3 mins

Using "with" and "whereHas" together with "withWherehas" in Laravel

0 Comments

馃敟 Quickfire

Laravel Tips & Tricks

Ashley Allen聽路 Last Updated At: 30th May 2024

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

03 May

13 mins

20 Useful Laravel Tips

5 Comments

Laravel PHP Tips & Tricks

Ashley Allen聽路

3rd May 2022

30 Mar

5 mins

Using 'query()' in Laravel Eloquent Queries

4 Comments

馃敟 Quickfire

Laravel Tips & Tricks

Ashley Allen聽路 Last Updated At: 2nd January 2024

28 Feb

9 mins

An Introduction to Caching in Laravel

0 Comments

Ashley Allen聽路

28th February 2022

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

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

31 Aug

10 mins

Setting Up Tailwind CSS in Laravel

0 Comments

Laravel Tips & Tricks Tutorial Web Design

Ashley Allen聽路

31st August 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

[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

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

29 Sep

4 mins

How To Create Professional Graphics For Your Website, Blog and Social Media Posts For Free

0 Comments

Tips & Tricks Web Design

Ashley Allen聽路

29th September 2019

02 Sep

2 mins

How To Check In 30 Seconds If Your Password Has Been Leaked

0 Comments

Security & Privacy Tips & Tricks Tutorial

Ashley Allen聽路

2nd September 2019

01 Sep

2 mins

Quick Tip: Improve Your Security For Free With Avast Antivirus

0 Comments

Ashley Allen聽路

1st September 2019

30 Aug

3 mins

Quick Tip: Improve Your Online Privacy with DuckDuckGo

0 Comments

Ashley Allen聽路

30th August 2019

03 Apr

4 mins

1 Free Trick to Increase Website Traffic Sales in Minutes

0 Comments

Business Tips & Tricks Web Design

Ashley Allen聽路

3rd April 2019

1