kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update user factory seeder
							rodzic
							
								
									436dc3032c
								
							
						
					
					
						commit
						b6cee0da95
					
				|  | @ -15,9 +15,10 @@ use Faker\Generator as Faker; | |||
| 
 | ||||
| $factory->define(App\User::class, function (Faker $faker) { | ||||
|     return [ | ||||
|         'name'           => $faker->name, | ||||
|         'email'          => $faker->unique()->safeEmail, | ||||
|         'password'       => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
 | ||||
|         'name' => $faker->name, | ||||
|         'username' => str_replace('.', '', $faker->unique()->userName), | ||||
|         'email' => str_random(8).$faker->unique()->safeEmail, | ||||
|         'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
 | ||||
|         'remember_token' => str_random(10), | ||||
|     ]; | ||||
| }); | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Daniel Supernault
						Daniel Supernault