Pest Driven Laravel
Series episodes
Workflow (45)
Welcome!
1m 15sLearn to build a full app with Test-Driven Development using PEST and Laravel Livewire. Write tests first, refactor smartly, and create dynamic user interfaces.
Prepare our Todos
3m 10sPlan and prepare your Todos like a pro! Learn to outline user tasks and set up effective TDD testing for smooth, organized Laravel app development.
Testing Setup
4m 22sSet up your Laravel testing environment with PEST! Learn to install, configure, and run tests smoothly in PhpStorm for reliable, efficient development.
Write Your First PEST Test
3m 4sWrite your first PEST test! Learn to create, refactor, and run basic Laravel tests while exploring TDD for confident, bug-free app development.
Show Course Overview - Part 1
15m 29sMaster TDD by building a course overview! Write tests, create models, and display released courses in order for a polished Laravel app experience.
Show Course Overview - Part 2
11m 54sLearn to test course visibility and order! Ensure only released courses show on your homepage, sorted by latest release for a seamless Laravel app experience.
Refactoring Tests for Clean and Readable Code
12m 56sRefactor your tests for clarity! Learn to replace static text with variables and use Laravel factory states to write cleaner, more readable test code.
Use Laravel Pint to Fix Code Style Issues
1m 24sInstall and use Laravel Pint to fix code style issues, maintain consistent PHP formatting, and improve readability effortlessly in your projects.
Show Course Details
12m 5sTest your course details page by creating course data, making requests, and verifying titles, descriptions, images, and key info display correctly.
Show Course Details - Part 2
8m 27sAdd videos to courses, fix missing data with factories and migrations, define model relationships, and test course details for accurate video display.
Refactoring Course Details
7m 7sRefactor course details for clarity and reliability! Add tests to show only released courses and handle unreleased ones with confidence in Laravel apps.
Refactoring Course Details - Part 2
6m 9sSimplify relationships, organize files, and boost performance! Learn to refactor migrations, restructure routes, and optimize Laravel app tests with ease.
Displaying Purchased Courses
14m 3sBuild a secure dashboard showing purchased courses! Learn to test access, list user courses in order, and set up relationships for smooth Laravel apps.
Displaying Purchased Courses - Part 2
8m 31sRefine your course dashboard! Test course order, exclude unrelated items, and add video links using Laravel factories, pivot tables, and route helpers.
Refactoring Code and Improving Test Performance
9m 27sRefactor tests and boost performance! Clean up Jetstream tests, organize files, and use helpers like loginAsUser and lazilyRefreshDatabase for faster Laravel testing.
Implement a Login/Logout Functionality
7m 2sImplement seamless login/logout! Learn to test user access, display correct links, and disable registration for controlled account creation in your Laravel app.
Creating a Video Player with Laravel Livewire
13m 55sCreate a Laravel Livewire video player! Build and test a secure course videos page that shows purchased content with seamless user access and dynamic playback.
Creating and Testing Video Player Components in Livewire
7m 11sBuild and test a Livewire video player! Display video details and embed Vimeo smoothly while fixing errors for a flawless Laravel component experience.
Always Make Time for Refactoring
9m 24sRefactor your code fresh with improved naming, dynamic variables, and readable video durations. Learn Livewire’s assertSeeHTML for cleaner, effective testing.
Creating and Testing a Video Player in Laravel
10m 44sEnhance your Laravel video player with a video list, clickable links, and Livewire tests to ensure smooth navigation and accurate video details.
Mark a Video As Completed
13m 11sLearn to let users mark videos as completed using Laravel's auth, attach, and detach methods with tests to ensure smooth, reliable functionality.
Refactoring Code and Enhancing PHP Relationships
10m 9sRefactor PHP code by enhancing relationships and using the spread operator to boost clarity and efficiency in this engaging Laracasts lesson.
Creating Helper Methods for Efficient Testing
10m 22sRefactor your tests with helper methods like createCourseAndVideos and isCurrentVideo to boost code clarity and efficiency in this Laracasts lesson.
Testing Livewire Components
8m 34sTest Livewire components effectively! Learn to verify method wiring with the "missing Livewire assertions" package for robust, user-triggered Laravel features.
Check if a User Has Already Watched a Video
9m 15sLearn to check if a user watched a video! Add and test the alreadyWatchedByCurrentUser method with efficient user authentication for smooth Laravel apps.
Managing Database Entries with Laravel Seeders and Migrations
9m 20sMaster managing data with Laravel seeders and migrations! Learn to add courses and videos reliably, test data integrity, and avoid duplicates effortlessly.
Creating and Testing Database Seeders in Laravel
11m 3sLearn to create and test Laravel seeders! Ensure courses have correct videos, avoid duplicates, and add local test users safely for smooth development.
First Look Through the Browser
9m 34sExplore your app in the browser after TDD! Learn to spot and fix video routing bugs by writing failing tests first for confident Laravel development.
Debugging Livewire Components in Devtools
6m 23sDebug Livewire components effortlessly! Learn to fix button issues, include assets, and test video titles for smooth, interactive Laravel apps.
Integrating Paddle
12m 8sIntegrate Paddle payments with ease! Learn to add a checkout overlay, handle taxes, and test your course purchase button for a smooth user experience.
Testing the Checkout Functionality in Courses
7m 23sFix checkout test issues, add Paddle product IDs, and integrate Paddle’s sandbox overlay to ensure smooth course purchases and accurate course links.
Validate and Store Paddle Requests
15m 4sLearn to validate and store Paddle checkout requests using Laravel’s webhook_client, custom validators, and jobs for secure, reliable webhook handling.
Managing Valid and Invalid Job Dispatching
2m 45sMaster job dispatching by faking queues and using assertions to test valid and invalid requests, ensuring robust, reliable job handling in your app.
Refactoring Code for Efficient Test Creation
4m 39sRefactor your code for cleaner, maintainable tests by extracting helpers, faking queues, and organizing validation for efficient, readable test creation.
Creating and Testing a Purchase Handler Job
12m 17sCreate and test a purchase handler job that stores Paddle purchases, reuses existing users, and sends purchase confirmation emails seamlessly.
Creating User-Specific Paddle Purchase Tests
7m 45sLearn to test Paddle purchases per user, handle unique constraints, and fake emails with NewPurchaseMail. Ensure reliable, clean code in this Laracasts lesson!
Refactoring Code and Testing Email Content
7m 44sRefactor code and boost test quality with reusable webhook setup. Verify email content and purchase details in feature tests. Keep your app reliable with Laracasts!
Testing the Payment Process Flow
5m 56sTest Paddle payment flow by integrating checkout overlays, setting up webhooks, creating users, sending emails, and recording purchases seamlessly in your app.
Creating a Command to Auto-Tweet New Courses
12m 53sCreate a Laravel command to auto-tweet new courses, using facades and fake methods to test tweets and streamline your course promotions effortlessly.
Implementing Real and Fake Twitter Clients
10m 29sTest real and fake Twitter clients by integrating TwitterOAuth, creating a service provider, and sending tweets to ensure your setup works flawlessly.
Twitter Client Refactoring
7m 55sRefactor your Twitter client by organizing services, adding interfaces, and using a NullTwitter class to safely fake Twitter during testing and avoid real calls.
Enhancing the User Experience
1m 59sEnhance your app’s user experience with a modern design, clean course layouts, login features, and an intuitive video player with easy navigation.
Measuring Code Coverage with PEST
13m 36sLearn to measure and boost code coverage with Pest using XDebug, coverage flags, and targeted tests to achieve reliable, high-quality code.
Social Meta Tags
12m 6sLearn to implement and test social meta tags that ensure your homepage and course pages display perfect previews when shared on social networks.
Efficient SEO Testing with the Test-SEO Plugin
6m 6sUse the test-seo plugin to simplify meta and social tag tests: build an SEO object from responses for readable, easy-to-change assertions.
Pest 2 Upgrade (3)
Upgrading to PEST 2
5m 19sUpgrade to Pest 2 and Laravel 10 with ease! Explore speed boosts, parallel testing, retry options, and more to keep your tests fast and reliable.
Exploring New Features in Pest 2
6m 4sDiscover Pest 2’s new features like compact mode, test profiling, to-do status, and retry method to speed up and simplify your testing workflow.
Architecture Testing in Pest 2
6m 1sLearn how to use Pest 2’s architecture testing to ensure clean, maintainable code by restricting classes and verifying global method usage.




