Jeremy's Larabits
Here, you'll find Jeremy McPeak's personal collection of Larabits. If you're unfamiliar, Larabits are short, isolated lessons that focus on a single concept or technique. While a typical series may take hours to work your way through, Larabits are instead for when you have five or ten minutes to pick up a small bit of knowledge.
Please keep in mind that each of these lessons is self-contained and may be viewed in any order. Happy learning!
Series episodes
HTMX May Be All You Need
15m 21sExplore HTMX, a powerful tool that simplifies building modern UIs using just HTML attributes—create dynamic search forms with paginated results effortlessly. (157 characters) Let me know if you'd like it refined!
How to Recycle Laravel
9m 49sSimplify creating related model instances with Laravel’s recycle() method. Learn how to streamline your factories and boost testing efficiency in this Larabit. (157 characters)
How to Bulk Insert Data
23m 41sLearn how to efficiently bulk insert large data sets in Laravel, overcoming PHP’s limitations with practical tips to speed up your database operations.
Laravel Development on a Windows Machine
34m 41sDiscover how to set up a smooth Laravel development environment on Windows using Laragon and Herd. Build Laravel apps confidently without a Mac!
Introduction to Laravel Precognition
13m 12sUse Laravel Precognition to run server-side validation in the browser, streamline forms, and improve UX without duplicating validation rules.
Everything You Need to Know About Laravel in 30 Minutes
29m 14sGet up to speed with Laravel in 30 minutes! Learn routing, validation, views, and database basics to kickstart your Laravel journey fast and confidently.
How to Provision a Server with Laravel Forge
11m 27sLearn how to provision a server with Laravel Forge step-by-step. Deploy your Laravel projects smoothly with this easy, hands-on Larabit tutorial!
How to Provision a Server on Digital Ocean
10m 58sProvision a Laravel server on Digital Ocean manually or with Forge. Learn step-by-step deployment using Digital Ocean's App Platform—easy and efficient!
Popping Over with Popovers
31m 7sDiscover how to use native HTML popovers for toasts, search boxes, and notifications in your apps. Follow this friendly Laracasts tutorial to enhance your UI skills!
Using Generics with PHP
25m 35sDiscover how to use generics in PHP with powerful tooling support. Learn the full workflow to write cleaner, more flexible code despite PHP's limitations.
Routing with Attributes
12m 58sDiscover how Laravel's attribute routing simplifies your code, boosts readability, and streamlines route management in this engaging Larabit tutorial.
Laravel's Flexible Cache is a Game Changer
7m 4sDiscover Laravel 11’s Cache::flexible() method that auto-refreshes cached data for up-to-date results. Boost your app’s performance with this game-changing feature!
Simpler Conditionals with when()
6m 19sDiscover how Laravel’s when() helper simplifies conditional logic. Write cleaner, more readable code with this easy, powerful tool in your next project!
Using Laravel's New nullOnUpdate() Method
8m 19sExplore Laravel’s new nullOnUpdate() method for migrations. Learn how to handle nullable fields on update with ease in this clear, practical guide!
How to Write Custom Helpers Functions
7m 56sLearn how to create custom helper functions in Laravel to simplify your code and boost productivity. Easy steps to enhance your app with reusable helpers!
Laravel's Service Container Explained in One Minute
56sUnderstand Laravel’s service container in one minute. Learn how to store and resolve dependencies easily, making your code cleaner and more flexible!
You Can Write Your Own Laravel Facades
5m 18sLearn how to create your own Laravel facades for clean, expressive code that simplifies service access and hides complex dependencies. Easy step-by-step guide!
Deployment With Laravel Cloud In Seconds
14m 17sDeploy your Laravel app in seconds with Laravel Cloud! Discover how this fast, seamless platform helps you ship projects quickly and effortlessly.
Laravel Just Destroyed Your N+1 Problem
5m 11sDiscover how Laravel 12.8 auto-eager loads relationships to eliminate N+1 issues. Simplify your queries and boost app performance with less code!
Better Forms, Less Effort
7mSimplify your forms with UseMods! Learn how powerful utilities streamline validation and submission to save time and boost your workflow efficiency.
No Js Framework? No Problem.
8m 8sBuild powerful tools with vanilla JavaScript and raw DOM elements—no frameworks needed. Discover how to create clean, efficient code the old-school way!
Single Action Controllers: One Job, Done Right
4m 29sMaster Single Action Controllers in Laravel to keep your app clean, organized, and focused—one simple controller for every unique task.
Inline Event Listeners In Laravel (No Class Required)
3m 36sLearn how to handle Laravel events with inline listeners—no class needed! Simplify debugging and add quick, environment-specific logic easily.
Laravel's New UseFactory Attribute
6m 16sDiscover Laravel 11.39's UseFactory attribute for cleaner, explicit model-factory links—no newFactory() needed, even with custom factory names!
Single Action All The Controllers?
9mExplore the benefits and challenges of using single-action controllers for cleaner, maintainable Laravel code in this engaging Laracasts video.
Should You Keep it Simple, Or Abstract Away?
5m 49sLearn when to use inline validation or Laravel Form Requests to write cleaner, smarter code in this practical, friendly Laracasts video.
Code Confession: I Don't Write Tests... Until I Have To
4m 31sDiscover why I skip tests until bugs strike—and how writing one saved me from repeating costly mistakes in this honest Laracasts video.
Where Should This Code Go?
7m 2sDecide where Laravel query or transformation code lives—controller, model, or service. See a real example and pick the clearest, testable home.
Should You Use Big Models or Services?
11m 15sDecide when to keep logic in Eloquent models or move it to service classes—follow a practical example to balance big models with clean, testable code.




