*/ class profileFactory extends Factory { protected $model = UserModel::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'nama' => $this->faker->name, 'email' => $this->faker->unique()->safeEmail, 'username' => $this->faker->userName, 'password' => bcrypt('password'), ]; } }