database/factories/BlogFactory.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 [
            'title' => $this->faker->word,
            'user_id' => $this->faker->numberBetween(1,5),
            'content' => $this->faker->realText
        ];
    }
public function definition ( ) { return [ 'title' => $ this -> faker -> word , 'user_id' => $ this -> faker -> numberBetween ( 1 , 5 ) , 'content' => $ this -> faker -> realText ] ; }
Define the model's default state.
Define the model ' s default state .