database/factories/TeachersFactory.php
/**
     * Define the model's default state.
     *
     * @return array
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'teacher_id' => uniqid(),
            'firstname' => $this->faker->firstName(),
            'lastname' => $this->faker->lastName(),
            'email' => $this->faker->email(),
            'degree' => "Computer Science",
            'phone' => $this->faker->phoneNumber(),
            'address' => $this->faker->address(),
            'status' => 1,
        ];
    }
public function definition ( ) { return [ 'teacher_id' => uniqid ( ) , 'firstname' => $ this -> faker -> firstName ( ) , 'lastname' => $ this -> faker -> lastName ( ) , 'email' => $ this -> faker -> email ( ) , 'degree' => " Computer Science " , 'phone' => $ this -> faker -> phoneNumber ( ) , 'address' => $ this -> faker -> address ( ) , 'status' => 1 , ] ; }
Define the model's default state.
Define the model ' s default state .