Codecourse's Avatar

Codecourse

@codecourse.com

We create the most practical screencasts for developers

143
Followers
51
Following
238
Posts
31.10.2024
Joined
Posts Following

Latest posts by Codecourse @codecourse.com

Laravel Mentions Add mentionable functionality to your Laravel applications and mention users, projects, issues… literally anything. We’ll...

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

09.03.2026 18:35 👍 0 🔁 0 💬 0 📌 0

No leftover data. No slow database resets. Clean environment every run.

We’re using it while testing mention syncing in our Laravel mentions course.

09.03.2026 18:30 👍 0 🔁 0 💬 0 📌 0

Fast tests. Clean state every run.

09.03.2026 18:25 👍 0 🔁 0 💬 0 📌 0

A small testing trick that makes Laravel tests way faster:

Use SQLite in-memory during test runs.

09.03.2026 06:28 👍 1 🔁 0 💬 1 📌 0

Before adding comment editing, we’re locking down mention syncing with Pest and an SQLite in-memory test DB.

08.03.2026 16:25 👍 0 🔁 0 💬 0 📌 0

When you’re building something like @mentions, tests matter more than you think.

08.03.2026 14:15 👍 0 🔁 0 💬 0 📌 0

This week’s topic on Code Course: testing mention syncing in Laravel.

Tell us what you know.

08.03.2026 12:27 👍 0 🔁 0 💬 0 📌 0

Before you optimize anything in Laravel:

Install Debugbar.

07.03.2026 17:20 👍 6 🔁 0 💬 0 📌 0

Yes, you switched the session driver
from database → file

But do you know why?

07.03.2026 13:30 👍 1 🔁 0 💬 0 📌 0

Install Debugbar.
Watch the queries.
Then decide.

07.03.2026 02:00 👍 1 🔁 0 💬 0 📌 0
- YouTube
- YouTube Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

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

06.03.2026 17:00 👍 0 🔁 0 💬 0 📌 0

If the user hasn’t changed,
why are you re-fetching them 100 times?

05.03.2026 18:30 👍 1 🔁 0 💬 0 📌 0

Caching isn’t about Redis hype.

It’s about removing unnecessary queries.

05.03.2026 17:00 👍 0 🔁 0 💬 0 📌 0

Laravel’s default Eloquent driver
will fetch the authenticated user
on every request.

So we replaced it.

05.03.2026 15:00 👍 0 🔁 0 💬 0 📌 0
Caching Authenticated Users in Laravel: Caching Authenticated Users in Laravel For even faster gains on high-traffic Laravel applications, you can cache authenticated users to avoid...

Check out the full Snippet here:

zurl.co/djOjM

04.03.2026 08:10 👍 0 🔁 0 💬 0 📌 0

Start with the authenticated user query.

Then decide what deserves caching.

03.03.2026 23:10 👍 1 🔁 0 💬 0 📌 0

If your comments, likes, and attachments
all have separate schemas…

You missed the abstraction.

26.02.2026 21:46 👍 1 🔁 0 💬 0 📌 0

Hot take:
If polymorphic relationships confuse you,
you’re probably overbuilding your schema.

25.02.2026 18:33 👍 1 🔁 0 💬 0 📌 0
Preview
Logging Users Out of Other Browser Sessions with Laravel Laravel provides a method for logging users out of all other browser sessions by re-hashing passwords. Let's look at how to use it to invalidate all other browser sessions for your users.

Logging Users Out of Other Browser Sessions with Laravel

codecourse.com/articles/log...

17.01.2026 01:12 👍 1 🔁 0 💬 0 📌 0
Preview
Match Wildcard Routes in Laravel Here's a quick tip on matching wildcard routes in Laravel. Once you're done, you can access the wildcard value and do anything you need to do with it.

Match Wildcard Routes in Laravel

codecourse.com/articles/mat...

17.01.2026 00:55 👍 0 🔁 0 💬 0 📌 0
Topics Browse hundreds of practical screencasts. Learn Laravel, Livewire, Vue and more.

There's a lot to discover 👀

Browse the library by topic and find something new to learn today.

codecourse.com/topics

16.01.2026 23:12 👍 0 🔁 0 💬 0 📌 0
Preview
Build a Livewire Comment System Build a drop-in comment system with Livewire that instantly works for any model. We’ll cover...

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...

16.01.2026 02:49 👍 0 🔁 0 💬 0 📌 0
Pro membership Get access to everything with a Codecourse pro membership.

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

16.01.2026 01:49 👍 0 🔁 0 💬 0 📌 0

PHP

16.01.2026 00:55 👍 1 🔁 0 💬 1 📌 0
Preview
Nested Categories and Breadcrumbs with Laravel Let’s master creating nested categories and displaying breadcrumbs for easy navigation. We’ll start by setting...

Let’s master creating nested categories and displaying breadcrumbs for easy navigation.

codecourse.com/courses/nest...

15.01.2026 02:16 👍 1 🔁 0 💬 0 📌 0
Preview
How to Check Your PHP Version (3 Ways) There are several ways to check which version of PHP you're running. Let's go through each one.

How to Check Your PHP Version (3 Ways)

codecourse.com/articles/how...

15.01.2026 01:16 👍 1 🔁 0 💬 0 📌 0
Preview
Dealing with Money in Laravel Dealing with monetary values in any application is something you have to get right the first time. Without the correct approach, you risk displaying prices incorrectly or worse, making…

Dealing with Money in Laravel

codecourse.com/articles/dea...

15.01.2026 00:55 👍 1 🔁 0 💬 0 📌 0
Preview
Cloudflare Turnstile with Livewire In this mini-course, we’ll walk through setting up and adding Cloudflare Turnstile to our Livewire...

In this mini-course, we’ll walk through setting up and adding Cloudflare Turnstile to our Livewire forms.

codecourse.com/courses/clou...

14.01.2026 00:55 👍 3 🔁 0 💬 0 📌 0
Preview
How to Run a Specific Migration File in Laravel If you just need to run a single migration file in Laravel, here's how to do it.

How to Run a Specific Migration File in Laravel

codecourse.com/articles/how...

14.01.2026 00:35 👍 2 🔁 0 💬 0 📌 0

Laravel

13.01.2026 23:35 👍 1 🔁 0 💬 0 📌 0