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

15 lines
No EOL
650 B
Markdown

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