Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Faker

 return [
        ...
        'avatar' => $this->faker->imageUrl(40,40),
        'status' => $this->faker->randomElement(['active','inactive','deleted']),
        'country' => $this->faker->country,
    ];
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Faker
ADD COMMENT
Topic
Name
1+3 =