<?php

namespace Database\Factories;

use App\SmSection;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factories\Factory;

class SmSectionFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = SmSection::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public $school_id;
    public $academic_id;

    public $section = ['A', 'B', 'C', 'D', 'E'];
    public $i = 0;

  
    public function definition()
    {

        return [
            'section_name' => $this->section[$this->i++] ?? $this->faker->word,
            'created_at' => date('Y-m-d h:i:s'),
           
        ];
    }
}
