cleanup new factories

This commit is contained in:
Matthew Penner
2021-01-15 19:15:41 -07:00
parent 4ac49fbfb3
commit 4f83a894a3
3 changed files with 7 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
namespace Database\Factories;
use Illuminate\Support\Str;
use Pterodactyl\Models\EggVariable;
use Illuminate\Database\Eloquent\Factories\Factory;
@@ -24,7 +25,7 @@ class EggVariableFactory extends Factory
return [
'name' => $this->faker->firstName,
'description' => $this->faker->sentence(),
'env_variable' => strtoupper(str_replace(' ', '_', $this->faker->words(2, true))),
'env_variable' => Str::upper(Str::replaceArray(' ', [ '_' ], $this->faker->words(2, true))),
'default_value' => $this->faker->colorName,
'user_viewable' => 0,
'user_editable' => 0,