Skip to content

Instantly share code, notes, and snippets.

@Wolg
Last active September 14, 2015 08:31
Show Gist options
  • Save Wolg/9fd76d93e1880539770c to your computer and use it in GitHub Desktop.
Save Wolg/9fd76d93e1880539770c to your computer and use it in GitHub Desktop.
CHECHEN names seeder for Laravel 5
<?php
foreach(range(0, 50) as $i) {
$names = ['Али', 'Акболат', 'Ваха', 'Гази', 'Дага', 'Джамбек', 'Заур', 'Зураб', 'Ибрагим', 'Иса',
'Магомед', 'Муса', 'Назарбек', 'Рамзан', 'Сосланбек', 'Усман', 'Хаджи', 'Иван'];
$lnames = ['Айдамиров', 'Бокой', 'Дуарбеков', 'Муратов', 'Гоголадзе', 'Иванов'];
DB::table('users')->insert([
'name' => $names[array_rand($names)] . ' ' . $lnames[array_rand($lnames)],
'email' => str_random(10) . rand(1950, 1996) .'@чечня.рф',
'password' => bcrypt('secret'),
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment