database/factories/PostFactory.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->sentence,
            'body' => $this->faker->text,
        ];
    }
public function definition ( ) { return [ 'title' => $ this -> faker -> sentence , 'body' => $ this -> faker -> text , ] ; }
Define the model's default state.
Define the model ' s default state .