database/factories/StudentsFactory.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 [
            'student_id' => uniqid(),
            'firstname' => $this->faker->firstName(),
            'lastname' => $this->faker->lastName(),
            'email' => $this->faker->safeEmail(),
            'phone' => $this->faker->phoneNumber(),
            'birthday' => now(),
            'city' => $this->faker->city(),
            'province' => "New Orleans",
            'country' => $this->faker->country(),
            'address' =>  $this->faker->streetAddress() . $this->faker->streetName(),
            'status' => 1,
        ];
    }
public function definition ( ) { return [ 'student_id' => uniqid ( ) , 'firstname' => $ this -> faker -> firstName ( ) , 'lastname' => $ this -> faker -> lastName ( ) , 'email' => $ this -> faker -> safeEmail ( ) , 'phone' => $ this -> faker -> phoneNumber ( ) , 'birthday' => now ( ) , 'city' => $ this -> faker -> city ( ) , 'province' => " New Orleans " , 'country' => $ this -> faker -> country ( ) , 'address' => $ this -> faker -> streetAddress ( ) . $ this -> faker -> streetName ( ) , 'status' => 1 , ] ; }
Define the model's default state.
Define the model ' s default state .