mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
25 lines
563 B
PHP
25 lines
563 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<\App\Models\StorageProvider>
|
|
*/
|
|
class StorageProviderFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'profile' => $this->faker->word(),
|
|
'provider' => $this->faker->randomElement(config('core.storage_providers')),
|
|
'credentials' => [
|
|
'token' => 'test-token',
|
|
],
|
|
'user_id' => User::factory(),
|
|
];
|
|
}
|
|
}
|