*/ class ApplicationFactory extends Factory { /** * Define the model's default state. * * @return array */ 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', ]; } }