Caching Authenticated Users in Laravel
Codecourse · 12:36
By default, Laravel runs a database query on every request to load the logged-in user. You can remove that query by registering a custom "cached eloquent" user provider that extends EloquentUserProvider and wraps retr...