mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
30 lines
781 B
PHP
30 lines
781 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Application;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Application>
|
|
*/
|
|
class ApplicationFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->unique()->words(2, true),
|
|
'destination_id' => 1,
|
|
'git_repository' => fake()->url(),
|
|
'git_branch' => fake()->word(),
|
|
'build_pack' => 'nixpacks',
|
|
'ports_exposes' => '3000',
|
|
'environment_id' => 1,
|
|
'destination_id' => 1,
|
|
'http_basic_auth_bcrypt_cost' => 10,
|
|
'http_basic_auth_argon2id_memory_cost' => 65536,
|
|
'http_basic_auth_argon2id_time_cost' => 4,
|
|
];
|
|
}
|
|
}
|