What is faker in Laravel?
Faker is a type of module or packages which are used to create fake data for testing purposes. It can be used to produce all sorts of data.
It is used to generate the given data types.
- Lorem text
- Person i.e. titles, names, gender, etc.
- Phone numbers
- Internet i.e. domains, URLs, emails etc.
- Colour, Files, Images
- UUID, Barcodes, etc
In Laravel, Faker is used basically for testing purposes.
BY Best Interview Question ON 20 Jul 2019