Before you optimize anything in Laravel:
Install Debugbar.
Before you optimize anything in Laravel:
Install Debugbar.
Yes, you switched the session driver
from database β file
But do you know why?
Install Debugbar.
Watch the queries.
Then decide.
Weβve been talking about caching authenticated users all week.
But do you actually understand whatβs happening?
Full video + quiz is live.
Go test yourself: zurl.co/VzQWP
If the user hasnβt changed,
why are you re-fetching them 100 times?
Caching isnβt about Redis hype.
Itβs about removing unnecessary queries.
Laravelβs default Eloquent driver
will fetch the authenticated user
on every request.
So we replaced it.
Start with the authenticated user query.
Then decide what deserves caching.
If your comments, likes, and attachments
all have separate schemasβ¦
You missed the abstraction.
Hot take:
If polymorphic relationships confuse you,
youβre probably overbuilding your schema.
Logging Users Out of Other Browser Sessions with Laravel
codecourse.com/articles/log...
Match Wildcard Routes in Laravel
codecourse.com/articles/mat...
There's a lot to discover π
Browse the library by topic and find something new to learn today.
codecourse.com/topics
Build a drop-in comment system with Livewire that instantly works for any model.
Once youβre done, you can drop a single Livewire comments component wherever you need it β and comments will instantly be enabled.
codecourse.com/courses/buil...
Join us today to get 40% off your first month/year, or 40% off a whole lifetime of learning.
See you soon!
codecourse.com/pro
PHP
Letβs master creating nested categories and displaying breadcrumbs for easy navigation.
codecourse.com/courses/nest...
How to Check Your PHP Version (3 Ways)
codecourse.com/articles/how...
Dealing with Money in Laravel
codecourse.com/articles/dea...
In this mini-course, weβll walk through setting up and adding Cloudflare Turnstile to our Livewire forms.
codecourse.com/courses/clou...
How to Run a Specific Migration File in Laravel
codecourse.com/articles/how...
Laravel
User subdomains in Laravel don't need to be difficult.
In this course we'll allow users to set their own subdomain, giving them their own area of your application where only their stuff is shown.
codecourse.com/courses/cust...
Say goodbye to the traditional email/password flow and implement passwordless authentication with Laravel!
In this course, we'll cover sending a secure link via email to allow users to sign in seamlessly. Oh, and we'll cover the entire registration process too.
codecourse.com/courses/pass...
Using Enums in PHP yet?
In this course, we'll look at the power of Enums and how they can drastically simplify your code.
codecourse.com/courses/php-...
Enums in Laravel: Everything You Need To Know
codecourse.com/articles/enu...
Livewire or Inertia.js. Which one should you choose?
codecourse.com/articles/liv...
Let's keep our Laravel applications feeling snappy! In this course, we cover the absolute fundamentals you need to keep in mind when building anything with Laravel.
codecourse.com/courses/lara...
Everything you need to know about working with Eloquent in Laravel.
Meet "Eloquent Relationships By Example".
codecourse.com/courses/eloq...