Factories and Seeders8:00 with Jonathan Barrios
So why do we need to use Factories and Seeders? Imagine you wanted to add some test data for our API, but you don’t want to manually define all of the individual attributes for each model, which can be a tedious development task. Instead, we’re going to use model factories to generate large amounts of database records for each model instance using the powerful Faker library. Let’s get started!
You need to sign up for Treehouse in order to download course files.Sign up