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-generate-fake-values-anywhere-in-your-app-using-the-new-fake-helper.md
Samuel Štancl c8f91bbe4b Week 25/2022
2022-06-26 21:38:42 +02:00

650 B

title tweet_id thread_slug author_username images created_at slug
You can generate fake values anywhere in your app using the new `fake()` helper 1540401126696030208 weekly-thread-2022-25 timacdonald87
https://pbs.twimg.com/media/FV5jtc0aAAATJNK.jpg
2022-06-24T18:27:02+00:00 you-can-generate-fake-values-anywhere-in-your-app-using-the-new-fake-helper

Enjoying the little things: the new fake() helper we introduced to Laravel.

Because it is a singleton, you can get unique values across multiple calls / boundaries.

Super useful for tests, factories, seeders, and for quickly prototyping a design with fake data ✌️