get factories to use other uuid generator rather than faker

This commit is contained in:
Matthew Penner
2021-01-16 14:01:26 -07:00
parent 1b05ca10e4
commit 59c71f0862
4 changed files with 10 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
namespace Database\Factories;
use Ramsey\Uuid\Uuid;
use Illuminate\Support\Str;
use Pterodactyl\Models\Node;
use Illuminate\Support\Facades\Crypt;
@@ -24,7 +25,7 @@ class NodeFactory extends Factory
public function definition(): array
{
return [
'uuid' => $this->faker->unique()->uuid,
'uuid' => Uuid::uuid4()->toString(),
'public' => true,
'name' => $this->faker->firstName,
'fqdn' => $this->faker->ipv4,