Implement Keystone environment deployments
This commit is contained in:
33
database/factories/ServiceSliceFactory.php
Normal file
33
database/factories/ServiceSliceFactory.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Service;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ServiceSlice>
|
||||
*/
|
||||
class ServiceSliceFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'service_id' => Service::factory(),
|
||||
'name' => $this->faker->slug(),
|
||||
'type' => 'database_user',
|
||||
'status' => 'active',
|
||||
'config' => [],
|
||||
'credentials' => [
|
||||
'username' => $this->faker->userName(),
|
||||
'password' => $this->faker->password(16),
|
||||
'database' => $this->faker->slug(),
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user