Files
vito/database/factories/StorageProviderFactory.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

26 lines
599 B
PHP

<?php
namespace Database\Factories;
use App\Models\StorageProvider;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<StorageProvider>
*/
class StorageProviderFactory extends Factory
{
public function definition(): array
{
return [
'profile' => $this->faker->word(),
'provider' => $this->faker->randomElement(array_keys(config('storage-provider.providers'))),
'credentials' => [
'token' => 'test-token',
],
'user_id' => User::factory(),
];
}
}