If our posts ever seem out of context, they usually come from quick lesson snippets of the week! Here is this weeks Course!
zurl.co/XwHwA
If our posts ever seem out of context, they usually come from quick lesson snippets of the week! Here is this weeks Course!
zurl.co/XwHwA
No leftover data. No slow database resets. Clean environment every run.
We’re using it while testing mention syncing in our Laravel mentions course.
Fast tests. Clean state every run.
A small testing trick that makes Laravel tests way faster:
Use SQLite in-memory during test runs.
Before adding comment editing, we’re locking down mention syncing with Pest and an SQLite in-memory test DB.
When you’re building something like @mentions, tests matter more than you think.
This week’s topic on Code Course: testing mention syncing in Laravel.
Tell us what you know.
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...
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...
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