database/factories/CourseFactory.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 [
            'name' => $this->faker->word,
        'description' => $this->faker->text,
        'amount' => $this->faker->randomDigitNotNull,
        'hours' => $this->faker->randomDigitNotNull,
        'deleted_at' => $this->faker->date('Y-m-d H:i:s'),
        'created_at' => $this->faker->date('Y-m-d H:i:s'),
        'updated_at' => $this->faker->date('Y-m-d H:i:s')
        ];
    }
public function definition ( ) { return [ 'name' => $ this -> faker -> word , 'description' => $ this -> faker -> text , 'amount' => $ this -> faker -> randomDigitNotNull , 'hours' => $ this -> faker -> randomDigitNotNull , 'deleted_at' => $ this -> faker -> date ( 'Y-m-d H:i:s' ) , 'created_at' => $ this -> faker -> date ( 'Y-m-d H:i:s' ) , 'updated_at' => $ this -> faker -> date ( 'Y-m-d H:i:s' ) ] ; }
Define the model's default state.
Define the model ' s default state .