24 lines
620 B
PHP
24 lines
620 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Label;
|
|
use App\Models\SongSlide;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class SongSlideFactory extends Factory
|
|
{
|
|
protected $model = SongSlide::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'label_id' => Label::factory(),
|
|
'order' => $this->faker->numberBetween(1, 12),
|
|
'text_content' => implode("\n", $this->faker->sentences(3)),
|
|
'text_content_translated' => $this->faker->optional()->sentence(),
|
|
'notes' => $this->faker->optional()->sentence(),
|
|
];
|
|
}
|
|
}
|