Implement Keystone environment deployments
This commit is contained in:
29
database/factories/ApplicationFactory.php
Normal file
29
database/factories/ApplicationFactory.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\RepositoryType;
|
||||
use App\Models\Organisation;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Application>
|
||||
*/
|
||||
class ApplicationFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'organisation_id' => Organisation::factory(),
|
||||
'name' => $this->faker->words(2, true),
|
||||
'repository_url' => 'git@example.com:org/'.$this->faker->slug().'.git',
|
||||
'repository_type' => RepositoryType::GIT,
|
||||
'default_branch' => 'main',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user