for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Database\Factories;
use App\Models\UserProfile;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
//todo - fix user profile factory
// todo fix userprofile full-name
class UserProfileFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = UserProfile::class;
* Define the model's default state.
* @return array
public function definition(): array
return [
'name' => $this->faker->firstName($gender = 'male' | 'female'),
|
||
'surname' => $this->faker->lastName,
];
}