public static function GenerateFake($faker) { return ['name' => $faker->firstName, 'surname' => $faker->lastName, 'email' => $faker->unique()->email, 'profile_picture' => $faker->imageUrl(), 'date_birth' => $faker->date('Y-m-d'), 'gender' => $faker->optional()->randomElement(['male', 'female']), 'location' => $faker->city, 'rrpp_id' => $faker->optional()->numberBetween($min = 1, $max = RRPP::count())]; }
public static function GenerateFake($faker) { return ['name' => $faker->company, 'desc' => $faker->text($maxNbChars = 200), 'photo_cover' => $faker->imageUrl($width = 640, $height = 480), 'geo' => $faker->latitude . ' ' . $faker->longitude, 'address' => $faker->streetAddress, 'owner_id' => $faker->numberBetween($min = 1, $max = RRPP::count())]; }