Course Overview
Build modern, full-stack web applications using Laravel 12, React 19, and Inertia.js v2 without the complexity of building APIs. This comprehensive course teaches you how to create a complete Twitter/X-style social media platform from scratch, combining Laravel's backend power with React's dynamic frontend.
What Makes This Course Different:
Unlike traditional Laravel + React courses that require building REST APIs, you'll use Inertia.js to seamlessly connect Laravel and React. Write server-side code in Laravel and client-side code in React, communicating effortlessly without API boilerplate.
What You'll Build:
A fully-functional social media application featuring user authentication, post creation with infinite scroll pagination, a Twitter-like reply system, heart/like functionality with optimistic UI updates, real-time polling for new content, and authorization so users can only edit their own posts.
Technologies You'll Master:
Laravel 12 (latest features and streamlined structure)
React 19 with TypeScript for type safety
Inertia.js v2 (deferred props, infinite scroll, polling)
Tailwind CSS v4 with modern CSS variables
shadcn/ui component library for professional UI
Laravel Wayfinder for type-safe routing
Laravel Telescope for debugging
Perfect For:
Developers who know PHP basics and have React exposure, Laravel developers wanting to build modern SPAs, and anyone tired of API complexity who wants a better way to build full-stack applications.
Course Structure:
12 sections taking you from Laravel installation to a ready social platform. Every lecture includes Git commits so you can compare your code and never get stuck.
Start building modern web applications the smart way - without API overhead.
FAQ
FAQ area empty
Course curriculum
Chương 1 Getting Started with Laravel and React 8 bài · 27 phút
- Welcome in the Course! Học thử 1:34
- Why This Stack and How it Works Học thử 5:45
- What You Will Build: Project Demo Học thử 2:03
- Setting Up the Environment: PHP, Node, Composer, Laravel Học thử 1:55
- Creating and Running a Laravel App Học thử 4:39
- Setting Up Inertia.js Học thử 9:41
-
Code Editor & AI Coding Tips 1:25
-
Course Resources
Chương 2 Full-Stack Basics with Laravel, Inertia & React 6 bài · 26 phút
-
Section Resources
- Creating Inertia Pages and Rendering from Controllers Học thử 8:50
-
Client-Side Navigation with Link Component 6:56
-
URL Naming Conventions - Why Kebab-Case? 2:00
-
Creating Reusable Layouts with React Children 5:18
-
React Props and the Children Prop 2:31
Chương 3 Building the Social Feed - Models, Controllers & Forms 9 bài · 1 giờ 24 phút
-
Section Resources
-
Creating Models and Migrations with Artisan 9:26
-
Controllers, Route Parameters and Passing Data to React 13:21
-
Installing Laravel Telescope for Debugging 5:01
-
Building the Social Feed - Fetching All Posts 9:23
-
Styling the Social Feed with Tailwind CSS 12:36
-
Building Header Navigation with Components 11:29
-
Creating Posts with Inertia Forms 15:38
-
Displaying Validation Errors and cn Utility 7:22
Chương 4 User Relationships - Authors and Foreign Keys 5 bài · 29 phút
-
Section Resources
-
Defining One-to-Many Relationships 11:14
-
Factories and Seeders for Test Data 8:15
-
Eager Loading Users with Posts 5:49
-
Fixing Missing user_id in Existing Posts 3:18
Chương 5 Professional UI with shadcn/ui Components 7 bài · 34 phút
-
Section Resources
-
What's shadcn/ui and Why Use It? 0:51
-
Installing shadcn/ui in Laravel 2:19
-
Understanding app.css - CSS Variables and Themes 7:21
-
Installing Button and Card Components 4:07
-
Refactoring UI with shadcn Components 9:25
-
Form Components - Input, Textarea, Label 9:59
Chương 6 Adding Replies - Relations, Controllers & UI 11 bài · 50 phút
-
Section Resources
-
Section Intro - Building the Comment System 4:28
-
Creating the Comment Model with Artisan 4:16
-
Comment Relationships and Migration Schema 5:32
-
Comment Factory and Seeding Data 7:51
-
Comment Controller - Storing Comments 6:47
-
Adding Comment TypeScript Types 2:52
-
Rebuilding Post Page with shadcn/ui 2:12
-
Building CommentForm and CommentCard Components 4:45
-
Eager Loading Comments with Authors 8:00
-
Connecting Comment Form to Backend 3:10
Chương 7 Advanced Inertia Features 6 bài · 26 phút
-
Section Resources
-
Deferred Props for Performance 7:12
-
Resetting Forms on Success with Render Props 2:48
-
Form Events - Scrolling to Comments 7:14
-
Toast Notifications with Sonner 4:05
-
Full Data Reload on Validation Errors 4:27
Chương 8 Real-Time Updates with Inertia Polling 6 bài · 29 phút
-
Section Resources
-
Setting Up Polling for New Comments 6:56
-
Extracting CommentList into Separate Component 1:28
-
Detecting and Notifying About New Comments 11:22
-
Using useRef to Track Comments Without Re-renders 4:04
-
Loading Indicators for Polling State 4:47
Chương 9 Adding Hearts - The Like System 10 bài · 58 phút
-
Section Resources
-
Section Intro - Like Feature Overview 1:29
-
Like Model, Migration and Relationships 2:35
-
Installing Laravel Wayfinder for Type-Safe Routes 11:21
-
Counting Post Likes with withCount 5:04
-
Checking if User Has Liked - Relationship Existence 3:15
-
Creating the LikeButton Component UI 8:07
-
Single Action Controller for Toggle Like 9:34
-
Passing Like Data as Deferred Props 5:57
-
Toggling Likes with Optimistic UI Updates 11:05
Chương 10 User Authentication 11 bài · 1 giờ 2 phút
-
Section Resources
-
Section Intro - Authentication Overview 1:40
-
Building Registration and Login Forms 5:25
-
Registration Controller - Creating Users 10:01
-
Login Controller - Authenticating Users 7:08
-
Sharing Current User Data with Inertia 2:43
-
Accessing the Shared Data (usePage) - Logged In User 3:59
-
Conditional Rendering Based on Auth Status 2:31
-
User Dropdown Menu and Logout 12:12
-
Serializing User Data with API Resources 13:59
-
Assigning Current User to Posts and Comments 2:23
Chương 11 Pagination, Optimization & User-Based Likes 7 bài · 46 phút
-
Section Resources
-
Making Likes User-Specific with Unique Constraint 17:28
-
Infinite Scroll in Inertia Explained 2:12
-
Fixing User ID Assignment in Forms 0:57
-
Cursor Pagination with Infinite Scroll 6:29
-
Randomizing created_at for Better Pagination Testing 3:03
-
Infinite Scroll for Comments with Optimized Polling 16:06
Chương 12 Authorization - Protecting Resources 12 bài · 1 giờ 19 phút
-
Section Resources
-
Section Intro - Authorization vs Authentication 1:11
-
Protecting Routes with Auth Middleware 1:34
-
How Authorization Works in Laravel 8:58
-
Creating a Post Policy 8:17
-
Authorizing Create and Delete Actions 5:46
-
Passing Authorization Abilities to React 10:29
-
Building Post Edit Functionality 10:08
-
Implementing Post Delete with Authorization 3:24
-
Building Post Actions Dropdown Menu 11:33
-
Delete Confirmation with AlertDialog 9:59
-
Flash Messages - Success and Error Toasts 8:03
Requirment
-
Basic PHP knowledge (variables, functions, classes)
-
Familiarity with HTML and CSS
-
Basic React understanding (components, props) - we explain as we go
Outcomes
-
Build a complete Twitter/X-style social media app using Laravel 12, React 19, and Inertia.js v2
-
Connect Laravel and React seamlessly without writing APIs
-
Implement authentication (registration, login, logout) and authorization with Laravel policies
-
Create posts, comments, and likes with full CRUD operations and validation
-
Build relationships between models using Eloquent ORM and prevent N+1 queries
-
Implement infinite scroll pagination with cursor-based pagination
-
Add real-time polling for new content updates
-
Create optimistic UI updates for instant user feedback
-
Style professional interfaces with Tailwind CSS v4 and shadcn/ui components
-
Use TypeScript for type-safe React components
-
Generate type-safe routes with Laravel Wayfinder
-
Debug applications using Laravel Telescope
-
Use deferred props and advanced Inertia features for better performance
0 Student
1 Course
0 review