📜  laravel faker title - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:42.605000             🧑  作者: Mango

代码示例1
$faker = Faker\Factory::create();

$faker->name; // First and second name
$faker->randomDigit; // A random number
$faker->word; // A single word
$faker->sentence; // A sentence
$faker->unique()->word; // A single unique word
$faker->text($maxNbChars = 300); // 300 character long text
$faker->safeEmail; // An email address
$faker->hexcolor; // Hex color