feat(factories): add new factories and update existing ones for all models
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class IntegrationCredentialFactory extends Factory
|
||||
{
|
||||
protected $model = \App\Containers\Dashboard\Models\IntegrationCredential::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'provider' => $this->faker->unique()->randomElement(['vk', 'telegram', 'email', '1c']),
|
||||
'payload' => ['token' => $this->faker->uuid, 'secret' => $this->faker->sha256],
|
||||
'is_active' => $this->faker->boolean(80),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user