28 lines
642 B
PHP
28 lines
642 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ProviderConnection;
|
|
use App\Models\ProviderCredential;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<ProviderCredential>
|
|
*/
|
|
class ProviderCredentialFactory extends Factory
|
|
{
|
|
protected $model = ProviderCredential::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'provider_connection_id' => ProviderConnection::factory(),
|
|
'type' => 'client_secret',
|
|
'payload' => [
|
|
'client_id' => fake()->uuid(),
|
|
'client_secret' => fake()->sha1(),
|
|
],
|
|
];
|
|
}
|
|
}
|