Extensions

Array

Array extension for Xefi Faker PHP

Random Element

$faker->randomElement(['first', 'second', 'third', 'fourth']); // second

Random Key

$faker->randomKey([['firstname' => 'John'], ['lastname' => 'Doe'], ['nickname' => 'Johnny'], ['login' => 'j.doe']]); // nickname

Copyright © 2024