Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/learnoid.codeskitter.site/database/factories/
Upload File :
Current File : /home/users/unlimited/www/learnoid.codeskitter.site/database/factories/EducationFactory.php

<?php

namespace Database\Factories;

use App\Repositories\InstructorRepository;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Education>
 */
class EducationFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'instructor_id' => InstructorRepository::getAll()->random()->id,
            'degree' => fake()->sentence(3),
            'institute' => fake()->sentence(3),
            'from_year' => fake()->year(),
            'to_year' => fake()->year(),
        ];
    }
}