28 lines
780 B
PHP
28 lines
780 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use SplFileInfo;
|
|
|
|
class GammeFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'parent_gamme_id' => null,
|
|
'title' => $this->faker->word(),
|
|
'text' => $this->faker->text(5),
|
|
'color' => $this->faker->hexColor(),
|
|
'picture' => new SplFileInfo(resource_path('assets/images/cookrange.jpg')),
|
|
'alt_text_picture' => $this->faker->sentence(10),
|
|
'banner' => new SplFileInfo(resource_path('assets/images/cat_bckg.jpg')),
|
|
'alt_text_banner' => $this->faker->sentence(10),
|
|
];
|
|
}
|
|
}
|