DictionaryFactory.php 226 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 <?php use Faker\Generator as Faker; $factory->define(App\Models\Dictionary::class, function (Faker $faker) { return [ 'name' => $faker->name, 'region_id' => $faker->unique()->randomNumber() ]; });