ldc-legaulois/database/factories/OfferFactory.php

30 lines
824 B
PHP
Raw Permalink Normal View History

2024-07-12 12:51:54 +02:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class OfferFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
2024-07-12 12:51:54 +02:00
{
return [
'title' => fake()->words(3, true),
'location' => fake()->words(5, true),
'contract' => fake()->words(5, true),
'function' => fake()->words(5, true),
'picture' => '',
2024-07-12 12:51:54 +02:00
'picture_alt' => fake()->words(5, true),
'picture_title' => fake()->words(5, true),
'link' => fake()->url(),
2024-07-12 12:51:54 +02:00
'description' => fake()->sentence(),
'published' => fake()->boolean(75),
];
}
}