mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 03:02:20 +00:00
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
22 lines
513 B
PHP
22 lines
513 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class StorageProviderFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'profile' => $this->faker->word(),
|
|
'provider' => $this->faker->randomElement(\App\Enums\StorageProvider::getValues()),
|
|
'credentials' => [
|
|
'token' => 'test-token',
|
|
],
|
|
'user_id' => User::factory(),
|
|
];
|
|
}
|
|
}
|