29 lines
824 B
PHP
29 lines
824 B
PHP
<?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
|
|
{
|
|
return [
|
|
'title' => fake()->words(3, true),
|
|
'location' => fake()->words(5, true),
|
|
'contract' => fake()->words(5, true),
|
|
'function' => fake()->words(5, true),
|
|
'picture' => '',
|
|
'picture_alt' => fake()->words(5, true),
|
|
'picture_title' => fake()->words(5, true),
|
|
'link' => fake()->url(),
|
|
'description' => fake()->sentence(),
|
|
'published' => fake()->boolean(75),
|
|
];
|
|
}
|
|
}
|