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