Support the ongoing development of Laravel.io →
Article Hero Image October 23rd 2025

The `match` Expression in PHP

Introduction The match expression is a PHP feature that I love using. It was introduced in PHP 8.0 (...

Read article
Article Hero Image August 24th 2025

Boosting Laravel Boost

Hello ? It's been a while since I wrote an article. I mean, why would I? You prompt AI about a subje...

Read article
May 16th 2025 Sponsored

Full Text Search & More with Typesense and Laravel

Building powerful and user-friendly search functionality is crucial for many Laravel applications. W...

Read article
April 10th 2025 Sponsored

LarAgent: An Open-source package to Build & Manage AI Agents in Laravel

Laravel has all the right ingredients to become a strong candidate for AI development. With its eleg...

Read article

Got some knowledge to share? Share your article with our 50,000+ X (Twitter) followers.

Articles

13 Articles

Article Hero Image
published on 23 Jun, 2025

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

Introduction I recently learnt about a cool feature in Laravel that allows you to pass a query build...

Article Hero Image
published on 11 Jun, 2025

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

Introduction I recently contributed a new feature to the Laravel framework that allows you to cast m...

Article Hero Image
published on 18 Feb, 2025

Preventing Destructive Commands from Running in Laravel

Introduction I recently stumbled upon a cool Laravel feature I hadn't come across before: the abilit...

7 min read
2 Likes
Article Hero Image
published on 18 Nov, 2024

Laravel Custom Query Builders Over Scopes

Hello ? Alright, let's talk about Query Scopes. They're awesome, they make queries much easier to re...

Article Hero Image
published on 18 Apr, 2024

Laravel Redis Throttle In Details: Tutorial

Redis Throttle is a fantastic feature provided by the Redis facade. It’s a convenient way to limit t...

Article Hero Image
published on 1 Apr, 2022

5 ways to optimize your eloquent queries

Did you know that 1 in 4 visitors would abandon a website if it takes more than 4 seconds to load? W...

8 min read
4 Likes
Article Hero Image
published on 4 Feb, 2022

How to find the slowest query in your application

Is your website slow? does it take ages to load? Are the users complaining that it's almost unusable...

5 min read

, , , , , , , , , and more liked this article

26 Likes
Article Hero Image
published on 4 Feb, 2022

How (and when) to fake an Eloquent model

In a recent Laravel project I've built (following TDD principles) I stumbled across this problem: H...

Article Hero Image
published on 10 Jan, 2022

Choosing the right data type & means of generating unique primary keys

This article is one of several I've written while building a web app in public. It’s called Lumeno...

10 min read
5 Likes
Article Hero Image
published on 15 Dec, 2021

Scaling your Laravel applications

This article is part of a series where I build a web application in public. It's called Lumeno and...

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.