This video will be available to
subscribers on Thu, Dec 11, 2025.
subscribers on Thu, Dec 11, 2025.
You must be a subscriber to view this video.
Dec 11, 2025
24m:13s
Model Factories
Classification
Software Engineering | Frameworks | Laravel
Keywords
laravel | php
About This Episode:
We simplify the process of generating test data by introducing Model Factories. Model factories allow you to create models and their relationships using expressive, reusable definitions — perfect for seeding your database with realistic sample data.
You’ll learn how to:
✅ Create and use model factories (php artisan make:factory)
✅ Generate models with fake data using make() and create()
✅ Build relationships with nested factories (has())
✅ Replace manual seeder logic with elegant factory-based seeding
By the end of this video, your database setup will be cleaner, faster, and ready for scalable testing and development.
Resources
- Laravel Factories Docs: https://laravel.com/docs/12.x/eloquent-factories
#Laravel #PHP #Eloquent #WebDevelopment #DatabaseSeeding #ModelFactories #LaravelTips #FullStack #TekCasts #LearnToCode
You’ll learn how to:
✅ Create and use model factories (php artisan make:factory)
✅ Generate models with fake data using make() and create()
✅ Build relationships with nested factories (has())
✅ Replace manual seeder logic with elegant factory-based seeding
By the end of this video, your database setup will be cleaner, faster, and ready for scalable testing and development.
Resources
- Laravel Factories Docs: https://laravel.com/docs/12.x/eloquent-factories
#Laravel #PHP #Eloquent #WebDevelopment #DatabaseSeeding #ModelFactories #LaravelTips #FullStack #TekCasts #LearnToCode
Short Bio:
Bob Cravens is a seasoned technology leader, software architect, and educator with a passion for empowering others through practical, real-world knowledge. As the founder of TekFoundry, Bob has dedicated his career to designing and delivering innovative software solutions that combine cutting-edge technology with elegant simplicity.
At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.
Bob’s expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, he’s passionate about helping others turn complex challenges into streamlined solutions.
When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.
At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.
Bob’s expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, he’s passionate about helping others turn complex challenges into streamlined solutions.
When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.