1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-use-factories-for-generating-any-fake-test-data-by-making-them-use-the-fluent-model.md
2021-11-12 18:43:31 +01:00

11 lines
No EOL
616 B
Markdown

---
title: 'You can use factories for generating ANY fake test data by making them use the Fluent model'
tweet_id: '1459206736183578629'
thread_slug: weekly-thread-2021-45
author_username: SteveTheBauman
images:
- 'https://pbs.twimg.com/media/FDnci06WEAMkBNp.jpg'
created_at: 2021-11-12T17:09:31+00:00
slug: you-can-use-factories-for-generating-any-fake-test-data-by-making-them-use-the-fluent-model
---
I really love using Laravel's Eloquent factories for generating fake test data. Did you know that you can also use them to generate fake API response data by using "Fluent" as the model name? Super cool! 🤯