Support the ongoing development of Laravel.io →
April 24th 2024

Find Open-Source Laravel/PHP Projects to Contribute to

Introduction I love open-source software. I love the idea of being able to contribute to a project t...

Read article
March 11th 2024

How to get your Laravel app from 0 to 9 with Larastan

Finding bugs in your Laravel app before it's even executed is possible, thanks to Larastan, which is...

Read article
January 16th 2023

Laravel Collections: The Artisan's Guide

Introduction Laravel Collections are really powerful for working with arrays of data. They provide a...

Read article
August 8th 2022

Why don't you start writing tests?

See how easy it is to get started with automated testing in Laravel There are hundreds of articles...

Read article

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

Articles

8 Articles

published on 23 Sep, 2024

Limit Eager Loaded Relationships on Laravel Models

Introduction Sometimes when you're eager loading relationships on Laravel models, you might want to...

2 min read

driesvints liked this article

1 Likes
published on 17 Jun, 2024

Top 10 Laravel Collection Methods You May Have Never Used

In this article series, we go a little deeper into parts of Laravel we all use, to uncover functions...

3 min read

driesvints, ol-serdiuk, issacnguyentx2022 liked this article

3 Likes
published on 29 Feb, 2024

Laravel - Eager loading can be bad!

Hello 👋 Yes, you read it right. Eager loading can be bad, really bad. However, we often resort to i...

7 min read

driesvints, sajibadhi, speed, antoniputra liked this article

4 Likes
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

driesvints, naser-da, cosmeoes, elkdev liked this article

4 Likes
published on 10 Feb, 2022

Filter Eloquent models with multiple optional filters

Often we need to filter eloquent models when displaying to a view. If we have a small number of filt...

7 min read

driesvints, cosmeoes, ovillafuerte94, iamadriandev, arnonm-intel, mathewslima, simonbarrettact, phcostabh, simomrh, elkdev and more liked this article

14 Likes
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

cosmeoes, driesvints, dragonfire1119, umutphp, preeda, geovanek, syofyanzuhad, olayiwolaaa, yvan-burrie, neil and more liked this article

26 Likes
published on 26 Sep, 2021

Using Database Transactions to Write Safer Laravel Code

Introduction In web development, data integrity and accuracy is really important. So, making sure th...

11 min read

shivam-687, ash-jc-allen, faissaloux, geovanek, ronald169, akhmatovalexander, rsmsp, yvan-burrie, django23, peterfox and more liked this article

11 Likes
published on 27 Jun, 2020

Using Custom Eloquent Casts in Laravel 7

Laravel 7 is pretty much upon us (scheduled for release on 3rd March) and brings a bunch of awesome...

3 min read

driesvints, mariosoftmedic liked this article

2 Likes

Top authors

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.

© 2024 Laravel.io - All rights reserved.