Codecourse's Avatar

Codecourse

@codecourse.com

We create the most practical screencasts for developers

142
Followers
51
Following
231
Posts
31.10.2024
Joined
Posts Following

Latest posts by Codecourse @codecourse.com

Before you optimize anything in Laravel:

Install Debugbar.

07.03.2026 17:20 πŸ‘ 4 πŸ” 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
Preview
Custom User Subdomains in Laravel Allow users to choose their own subdomain, and give them their own area of your...

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

13.01.2026 00:55 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Passwordless Authentication with Laravel Say goodbye to the traditional email/password flow and implement passwordless authentication with Laravel! In this...

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

13.01.2026 00:17 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1
Preview
PHP Enums Enums represent a typed set of possible values in PHP. For example, if you're storing...

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

12.01.2026 23:17 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Enums in Laravel: Everything You Need To Know Enums were introduced in PHP 8.1, and Laravel has taken full advantage of their power. Let's take a look at how you're able to use Enums in your Laravel projects today.

Enums in Laravel: Everything You Need To Know

codecourse.com/articles/enu...

10.01.2026 01:12 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Livewire or Inertia.js. Which one should you choose? Both Livewire and Inertia are incredibly popular stacks for building applications in Laravel. If you're stuck choosing between the two, let's weigh which one is right for you.

Livewire or Inertia.js. Which one should you choose?

codecourse.com/articles/liv...

10.01.2026 00:55 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Laravel Performance Let's keep our Laravel applications feeling snappy! In this course, we cover the absolute fundamentals...

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

09.01.2026 23:12 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Eloquent Relationships By Example Eloquent is Laravel's ORM (Object Relational Mapper). In simple terms, it's how your models work...

Everything you need to know about working with Eloquent in Laravel.

Meet "Eloquent Relationships By Example".

codecourse.com/courses/eloq...

09.01.2026 02:49 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0