Support the ongoing development of Laravel.io →
Article Hero Image November 24th 2025

The Difference Between ?: and ?? in PHP

Introduction In PHP, I often see the ternary operator (?:) and null coalescing operator (??) being u...

Read article
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
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

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

Articles

14 Articles

Article Hero Image
published on 7 Jan, 2026

How I Reduced Laravel N+1 Queries by 83% Using JSON Aggregation

The Problem: N+1 Queries Are Killing Your API Performance If you've worked with Laravel's Eloquent O...

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

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.

© 2026 Laravel.io - All rights reserved.