---
title: "Discussion on \"How To Generate and Use Fake Records with Laravel Model Factories\" | Hashnode"
description: "Discussion on \"How To Generate and Use Fake Records with Laravel Model Factories\". Laravel Model factories define database records in a predictable and easily replicable way so that your app tests are consistent and controlled. Model factories define a set of default attributes for each of your Eloquent models.\nFor example, if you’..."
url: "https://hashnode.com/posts/how-to-generate-and-use-fake-records-with-laravel-model-factories/6491f3d8c167b41645fd295e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Generate and Use Fake Records with Laravel Model Factories](https://kinsta.hashnode.dev/how-to-generate-and-use-fake-records-with-laravel-model-factories?utm_source=hashnode&utm_medium=feed)

Laravel Model factories define database records in a predictable and easily replicable way so that your app tests are consistent and controlled. Model factories define a set of default attributes for each of your Eloquent models. For example, if you’...

Jun 20, 2023 · 7 min read · kinsta.hashnode.dev  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#testing](https://hashnode.com/tag/testing)
-   [#applications](https://hashnode.com/tag/applications)
-   [#app-development](https://hashnode.com/tag/app-development)

## Written by

[Kinsta](https://hashnode.com/@Kinsta)

@Kinsta

  
[View profile](https://hashnode.com/@Kinsta)

Kinsta | The best home for modern WordPress sites

Power your web projects with Kinsta - the fastest, most reliable hosting for WordPress sites, applications, databases, and static sites. Kinsta is for all projects, from small blogs to Fortune 500 customers. Trusted by 120,000+ businesses from 128 countries around the globe. The only continent we haven't reached yet is Antarctica. Get started today at kinsta.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
