28 lines
649 B
PHP
28 lines
649 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Rating;
|
|
use App\Models\Employer;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Job>
|
|
*/
|
|
class JobFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'title' => fake()->jobTitle(),
|
|
'employer_id' => Employer::factory(),
|
|
'salary' => fake()->numberBetween($min = 30000, $max = 125000),
|
|
'id' => Rating::factory(),
|
|
];
|
|
}
|
|
}
|