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 Pterodactyl\Models\Egg;
use Illuminate\Database\Eloquent\Factories\Factory;
@@ -22,7 +23,7 @@ class EggFactory extends Factory
public function definition(): array
{
return [
'uuid' => $this->faker->unique()->uuid,
'uuid' => Uuid::uuid4()->toString(),
'name' => $this->faker->name,
'description' => implode(' ', $this->faker->sentences()),
'startup' => 'java -jar test.jar',