define(Pterodactyl\Models\User::class, function (Faker\Generator $faker) { return [ 'external_id' => null, 'uuid' => $faker->uuid, 'username' => $faker->userName, 'email' => $faker->safeEmail, 'name_first' => $faker->firstName, 'name_last' => $faker->lastName, 'password' => bcrypt('password'), 'language' => 'en', 'root_admin' => false, 'use_totp' => false, ]; }); $factory->state(Pterodactyl\Models\User::class, 'admin', function () { return [ 'root_admin' => true, ]; }); $factory->define(Pterodactyl\Models\Location::class, function (Faker\Generator $faker) { return [ 'short' => $faker->domainWord, 'long' => $faker->catchPhrase, ]; });