Caching Authenticated Users in Laravel

1 episode 12 mins

Overview

For even faster gains on high-traffic Laravel applications, you can cache authenticated users to avoid a trip to the database.

In this snippet, I'll show you how — but this isn't a quick fix; we'll have to consider what happens when the user gets updated or deleted.

Let's cache!

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episodes

0%
Your progress
  • Total: 12m
  • Played: 0m
  • Remaining: 12m