update deploy
This commit is contained in:
27
database/factories/CourseBlockFactory.php
Normal file
27
database/factories/CourseBlockFactory.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Course;
|
||||
use App\Models\CourseBlock;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<CourseBlock>
|
||||
*/
|
||||
class CourseBlockFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'course_id' => Course::factory(),
|
||||
'type' => fake()->randomElement(['hero', 'text', 'cards', 'stats_grid', 'cta', 'faq', 'gallery']),
|
||||
'content' => ['title' => fake()->sentence()],
|
||||
'order_index' => fake()->numberBetween(0, 10),
|
||||
'is_active' => true,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user