37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
use Illuminate\Support\Str;
|
||
|
|
|
||
|
|
class RangeFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition()
|
||
|
|
{
|
||
|
|
$title = fake()->sentence();
|
||
|
|
|
||
|
|
return [
|
||
|
|
'seo_title' => fake()->word(),
|
||
|
|
'seo_description' => fake()->text(160),
|
||
|
|
'title' => $title,
|
||
|
|
'slug' => Str::slug($title),
|
||
|
|
'subtitle' => fake()->sentence(),
|
||
|
|
'tagline' => fake()->sentence(),
|
||
|
|
'description' => \clean(\fake()->randomHtml(6, 7)),
|
||
|
|
'picture_alt' => fake()->sentence(),
|
||
|
|
'picture_title' => fake()->sentence(),
|
||
|
|
'picture_productsheet_alt' => fake()->sentence(),
|
||
|
|
'picture_productsheet_title' => fake()->sentence(),
|
||
|
|
'picture_thumbnail_alt' => fake()->sentence(),
|
||
|
|
'picture_thumbnail_title' => fake()->sentence(),
|
||
|
|
'published' => fake()->boolean(75),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|