Last active
September 14, 2015 08:31
-
-
Save Wolg/9fd76d93e1880539770c to your computer and use it in GitHub Desktop.
CHECHEN names seeder for Laravel 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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