Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel faker examples

//Usando Faker/Factory pra gerar valores fake

use FakerFactory as Faker;

$faker = Faker::create();
foreach(range(1, 30) as $index) {
    Employee::create([
         'email' => $faker->email(),
         'name' => $faker->sentence(5),
         'description' => $faker->paragraph(6),
    ]);
}
 
PREVIOUS NEXT
Tagged: #laravel #faker #examples
ADD COMMENT
Topic
Name
3+8 =