for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Foundry\Tests\Fixtures\Factories;
use Zenstruck\Foundry\ModelFactory;
use Zenstruck\Foundry\Tests\Fixtures\Entity\User;
final class UserFactory extends ModelFactory
{
protected function getDefaults(): array
return [
'name' => self::faker()->name,
];
}
protected static function getClass(): string
return User::class;