Jeffrey's Larabits
Here, you'll find Jeffrey Way'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
How Jeffrey Would Setup PHPStorm
7m 52sQuickly set up PHPStorm like Jeffrey: layout, Nord theme, key preferences and plugins—ten-minute tweaks to speed up your workflow.
Exciting New PHP 8.1 Features
11m 23sExplore five PHP 8.1 features: constructor property promotion, readonly properties, enums, and more, modernize your code in ten minutes.
New in Laravel: Disable Lazy Loading
4m 28sLearn Laravel 8's disable-lazy-loading feature to catch N+1 issues—throw exceptions on unintended Eloquent lazy loads and improve query performance.
So Much Power in a Single Line
4m 1sDefine powerful Laravel authorization gates in one line, protect admin sections and reuse policies across controllers, middleware, and views.
Refactor to Match Expressions
5m 22sRefactor messy PHP conditionals into concise PHP 8 match expressions and a lookup-based factory—cleaner code with strategy pattern tips.
Consider Interaction Traits for Tests
7m 37sLearn to extract interaction traits for Laravel tests - simple, reusable patterns to mock services like Stripe and speed up testing.
Introduce Seams for Better Refactoring
13m 27sLearn how to add seams to safely refactor large methods, using conditionals as hooks to incrementally rewrite code without breaking behavior.
Simple Real-Time Search Highlighting
12m 27sLearn to build a simple Vue real-time search highlighter—easily highlight matching text in your projects for a smoother, interactive user experience.
3 Building Blocks for Any Collection
8m 13sLearn the 3 key interfaces—Countable, ArrayAccess, and Traversable—to build custom Laravel collections that behave like arrays with ease and flexibility.
New in Laravel: Lazy Database Refreshing
8m 9sDiscover Laravel’s new LazilyRefreshDatabase trait that refreshes your database only when tests interact with it, speeding up your testing workflow.
An Essential Tool in Your JavaScript Belt
10m 30sDiscover how ESLint boosts your JavaScript workflow by catching errors, enforcing rules, and auto-fixing issues to keep your code clean and consistent.
Refactor Messy Conditionals to Lookup Tables
6m 34sLearn how to simplify messy conditionals by refactoring them into clean lookup tables, making your code more readable and maintainable in real projects.
Custom Artisan Commands Exercise
15m 23sLearn how to easily create custom Laravel Artisan commands with a practical example. Boost your app’s power and simplify tasks in minutes!
I Think I Can
3m 11sLearn how Laravel 8.70 lets you chain can() directly on routes for cleaner authorization. See before-and-after examples to simplify your route logic.
CSS Properties You May Not Know
12m 4sExplore lesser-known CSS features like clip-path, shape-based text wrapping and animations to add creative, practical effects to your projects.
Service Containers in 3 Levels
27m 53sMaster service containers in three levels: from a simple prototype to bindings, singletons, and automatic dependency instantiation.
Mode and Keybinding Primer for the Vim-Curious
16m 52sQuick crash-course on essential Vim modes and keybindings to speed up editing—apply them in your favorite code editor.
From Zero to Markdown Converter in 10 Minutes
10m 43sBuild a real-time Markdown converter UI in 10 minutes using Laravel’s built-in Markdown tool. See live previews as you type in this fun, easy tutorial! (157 characters)
A New Way to Define Accessors and Mutators
8m 37sDiscover Laravel’s new, elegant way to define Eloquent accessors and mutators with a single method, simplifying your model code and boosting clarity.
Solving the CSS Viewport Height Quirk in Mobile Safari
6m 25sFix the mobile Safari viewport height quirk with a simple JavaScript hack. Learn how to handle CSS vh issues for smoother responsive designs today.
Enable Automatic Tailwind Class Sorting in 4 Minutes
4m 46sLearn how to enable automatic TailwindCSS class sorting in just 4 minutes using the official Prettier solution—save time and keep your code clean effortlessly!
Cypress and Laravel Crash-Course
18m 23sLearn how to easily integrate Cypress with Laravel for seamless end-to-end testing—covering auth, factories, migrations, seeding, and more in just minutes!
Simpler Modals With the Dialog Element
14m 48sUse the HTML dialog element to build accessible modals: a friendly crash course covering toggling, full API, and event handling.
Techniques for Improving Test Performance
20m 8sSpeed up Laravel tests with practical techniques: avoid unnecessary relationship loading, model events, and extraneous notifications.
From Zero to "Log In With GitHub" in Ten Minutes
11m 44sBuild a GitHub login system fast using Laravel Breeze and Socialite. Follow this quick Larabit to add seamless GitHub sign-in to your app in minutes!
The Gambler's Ruin, Illustrated With PHP
16m 49sExplore the Gambler's Ruin concept with a fun PHP example. Understand basic probability through a 50/50 coin-flip game in this engaging Larabit lesson!
6 New'ish HTML Tags You Can Use Right Now
17m 51sDiscover 6 new HTML tags you can start using today to enhance your web projects with native controls and modern features—easy, practical, and powerful!
Tiny Refactors Make a Big Difference
18m 23sDiscover how tiny refactors can transform messy code into clean, efficient apps. Join this Larabit to boost your coding skills with real-world tips!
Laravel's New Strict Mode
11m 19sEnable Laravel's new strict mode to catch N+1 queries and invalid model attributes early, learn how to configure and use it confidently.
Jeffrey Reviews Pest for the First Time
33m 14sJoin me as I explore Pest, the PHP testing framework, learn its basics, and decide if it’s worth switching to—discover why the excitement is real!
ChatGPT Schools Laracasts Owner
33m 42sJoin me as ChatGPT becomes my Laravel teacher—watch AI guide step-by-step feature building and discover how AI is shaping programming’s future!
How to Make a Passwordless Login System
19m 50sLearn how to build a secure passwordless login system in Laravel using Breeze and temporary signed URLs. Simplify authentication with this step-by-step guide!
Laravel Herd - First Look
7mDiscover Laravel Herd, a fast one-click Mac dev environment packed with everything to start Laravel development instantly. Join this friendly Laracasts first look!
Laravel Folio First Look
20m 33sDiscover Laravel Folio, a fresh page-based router that simplifies routing. Create routes by adding files—perfect for organizing your Laravel apps with ease!
Effortless Animations with AutoAnimate
19m 36sDiscover how AutoAnimate makes adding smooth, effortless animations to your Laravel UIs simple and magical. Level up your components with minimal code today!
CSS-Only Radial Progress Bars
13m 52sLearn to create sleek radial progress bars using only CSS and conic gradients—no JavaScript needed! Boost your UI with modern, lightweight techniques. (156 characters)
Let's Have a Dialog
35m 17sDiscover how to use the HTML dialog element as a native modal! Follow 8 easy steps to unlock built-in features and simplify your UI development.
An Anchor Within an Anchor?
8m 58sLearn how to create clickable UI cards with nested links without invalid HTML. Follow this friendly Laracasts tutorial for a quick, practical solution!
Laravel Socialite and Github Authentication Workshop
48m 38sLearn how to add GitHub authentication to your Laravel app using Socialite. Follow this friendly workshop to master the workflow and avoid common pitfalls!
The Intermediate Developer Trap
18m 38sAvoid the intermediate developer trap of overcomplicating code. Learn to simplify and improve your code by reversing common pitfalls with clear, practical tips.
Eloquent's New Chaperone Method
9m 37sExplore Laravel 11's new Eloquent chaperone method that solves the common N+1 problem, boosting your app's performance with clean, efficient queries.
Execute Code After a Response is Returned?
13m 40sDiscover Laravel 11's defer() function to run code after a response returns, boosting app performance by handling long tasks seamlessly. Learn how it works!
Code Splitting, Chunks, and Laravel Prefetching
8m 52sExplore code splitting, chunks, and Laravel prefetching to optimize your single-page app’s load time. Get the best of both fast loads and efficient delivery!
Contextual Attributes in Laravel. Huh?
21m 44sDiscover Laravel's contextual attributes to dynamically resolve dependencies and tailor implementations based on runtime context with clear, practical examples.
PHP Attributes and Custom Collections Simplified
17m 56sLearn how Laravel's CollectedBy attribute lets you set custom Collections for models. Understand PHP attributes clearly in this friendly, hands-on Laracasts lesson!
This CSS Grid Sizing Trick Feels Like Magic
17m 2sLearn a CSS Grid sizing trick using auto-fit, auto-fill, and minmax() to handle dynamic columns effortlessly and create flexible, responsive layouts.
Ditch MySQL's "LIKE" For Smarter Search
28m 13sUpgrade your search by ditching MySQL LIKE—learn to implement fast, accurate fuzzy search with Typesense and Laravel Scout from scratch!
Laravel Wayfinder Is The Way
18m 52sExplore Laravel Wayfinder, a new package that lets you call route endpoints from front-end code without hardcoding URIs, boosting your app’s flexibility and ease.
How To Boost Your Laravel App In Minutes
14m 37sBoost your Laravel app in minutes with a single command! Learn to code an exam engine using AI-powered tools and improved documentation. Let's dive in!
Browser Testing is No Longer Horrible
26m 25sExplore Pest 4's new browser testing with Playwright! Watch me build real tests for Laracasts' checkout flow—easy, powerful, and fun.
Build Your First Telegram Bot In Record Time
15m 35sQuickly build your first Telegram bot to automate tasks and handle admin while you're away — step-by-step, beginner-friendly guide.
Meet Bob, My New Personal Assistant
14m 40sMeet Bob, my new AI personal assistant — I fought a weekend of 10,000 Clawdbot posts, tested Bob to regain focus and streamline my workflow.




