Browse all series
FrameworksAdvanced28 episodes

Eloquent Performance Patterns

In this series, you'll learn how to drastically improve the performance of your Laravel applications by pushing more work to the database, all while still using the Eloquent ORM.

This course is a culmination of everything I've learned along my journey, distilled into a single course. We're going to dig deep into advanced real world problems.

Series episodes

Performance (16)

Run Authorization Policies in the Database

6m 7s

Discover how running authorization policies in the database can boost security and efficiency. Join this Laracasts episode for practical, expert insights!

Faster Ordering With Compound Indexes

4m 7s

Boost your query speed with compound indexes! Learn how to optimize orderBy performance in this Laracasts lesson with clear, practical examples.

Options for Ordering by a HasOne Relationship

1m 41s

Learn two ways to order Eloquent records by a hasOne relationship and pick the most performant approach for your Laravel app.

Options for Ordering by a BelongsTo Relationship

1m 42s

Order Eloquent results by a belongsTo relationship column—practical, step-by-step tips to sort Laravel queries efficiently.

Options for Ordering by a HasMany Relationship

4m 24s

Master ordering records by a hasMany relationship: compare joins vs subqueries and learn practical strategies to sort related data efficiently.

Options for Ordering by a BelongsToMany Relationship

4m 24s

Learn how to order records by a belongsToMany relationship (library checkout example) with practical Eloquent strategies and examples.

Ordering With NULLs Always Last

7m 39s

Learn to order query results with NULLs last: practical SQL techniques and examples to ensure null values appear at the end of your lists.

Ordering By Custom Algorithms

6m 40s

Learn to sort records with custom algorithms—implement flexible ordering (title, status, activity) to display feature requests intuitively.

Filtering and Sorting Anniversary Dates

7m 7s

Learn how to filter, sort, and order data by anniversary dates like birthdates to organize user lists effectively in this practical Laracasts lesson.

Make N+1 Issues Impossible

3m 36s

Learn a simple technique to prevent N+1 query issues from ever affecting your app’s performance in this clear, practical Laracasts lesson.

Ordering Data For Humans Using Natural Sort

4m 23s

Learn natural sorting to order data for humans—practical examples and techniques to make lists read and sort intuitively.

Full Text Searching With Rankings

5m 9s

Learn to implement MySQL full-text search with relevance rankings, create indexes, run queries, and boost search accuracy in your apps.

Get the Distance Between Geographic Points

3m 25s

Learn to compute accurate distances between geographic points using geospatial functions, a step-by-step guide for practical location-based apps.

Filter by Geographic Distance

3m 2s

Learn to filter geographic points to show only results within 10 km, hands-on distance queries and geospatial filtering for your web app.

Order by Geographic Distance

1m 28s

Learn how to order locations by geographic distance to display the closest stores first. Enhance your app with smart, location-based sorting techniques!

Filter by Geospatial Area

4m 38s

Learn how to filter results by geospatial area with a demo app mapping customer locations across Canada. Master location-based queries with ease and precision!

Continue learning

Thumbnail for React, The Laravel Way
React, The Laravel Way

With Simon Vrachliotis

  • 30 episodes
  • Intermediate
  • Frameworks
Thumbnail for Rebuild GitHub with Tailwind CSS
Rebuild GitHub with Tailwind CSS

With Andre Madarang

  • 5 episodes
  • Intermediate
  • Frameworks
Thumbnail for Russian-Doll Caching in Laravel
Russian-Doll Caching in Laravel

With Jeffrey Way

  • 7 episodes
  • Advanced
  • Tooling
Thumbnail for Build Mobile Apps With React Native and Expo
Build Mobile Apps With React Native and Expo

With Andre Madarang

  • 24 episodes
  • Intermediate
  • Frameworks
Thumbnail for MySQL Database Design
MySQL Database Design

With Jeffrey Way

  • 17 episodes
  • Beginner
  • Tooling

Would you like to hear from Laracasts by email occasionally?