Verfügbarkeitstest für API Provider ergänzt.
This commit is contained in:
30
database/factories/StyleFactory.php
Normal file
30
database/factories/StyleFactory.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Style;
|
||||
use App\Models\AiModel;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class StyleFactory extends Factory
|
||||
{
|
||||
protected $model = Style::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'title' => $this->faker->words(3, true),
|
||||
'prompt' => $this->faker->sentence(),
|
||||
'description' => $this->faker->paragraph(),
|
||||
'preview_image' => 'styles/preview.jpg',
|
||||
'parameters' => json_encode([
|
||||
'positive' => $this->faker->sentence(),
|
||||
'negative' => $this->faker->sentence(),
|
||||
'steps' => 30,
|
||||
'cfg_scale' => 7.5
|
||||
]),
|
||||
'ai_model_id' => AiModel::factory(),
|
||||
'enabled' => $this->faker->boolean(80),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user