Learn to use model factories in Laravel
Laravel has a feature called model factories that allows you to build fake data for your models. It is very useful for testing and seeding fake data into your database to see your code in action before any real user data comes in.
Let’s see how model factories work and how we can use them by building a Laravel application.
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5.3 Laravel 5.4 Laravel 5.5 Intermediate Laravel 5