1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +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

616 B

title tweet_id thread_slug author_username images created_at slug
You can use factories for generating ANY fake test data by making them use the Fluent model 1459206736183578629 weekly-thread-2021-45 SteveTheBauman
https://pbs.twimg.com/media/FDnci06WEAMkBNp.jpg
2021-11-12T17:09:31+00:00 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! 🤯