Category: Laravel

Fzaninotto/Faker is a package for generating all sorts of random data. This tip shows you how you can use it to generate unique data for usage in tests. With the help of Faker, it is possible to generate random data. Not only random numbers and Lorem ipsum.

This is done by keeping a list of generated data and re-generating new data until a unique value is found.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners