ldc-doux/database/factories/PictoBrandFactory.php
2021-12-20 14:02:37 +01:00

33 lines
740 B
PHP

<?php
namespace Database\Factories;
use App\Models\PictoBrand;
use Illuminate\Database\Eloquent\Factories\Factory;
use SplFileInfo;
class PictoBrandFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = PictoBrand::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->randomNumber(3, false),
'picture' => new SplFileInfo(resource_path('assets/images/site-production.jpg')),
'alt_text_picture' => $this->faker->sentence(10),
'text' => $this->faker->text(20),
];
}
}