Skip to content


Laravel faker multiple languages

Laravel1 min read

You can set language for all faker, it’s means global settings. The setting is in app.php

laravel/app.php at master · laravel/laravel · GitHub

Next, in my case I need to set multiple languages for each column, for example, address field I need to set Koran, also name field I need to set Chinese. You can use addProvider to assign specific column translation.

GitHub - fzaninotto/Faker: Faker is a PHP library that generates fake data for you