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(),
            'content' => $this->faker->text(),
            'image' => 'posts-images/' . $this->faker->image('public/storage/posts-images', 640, 480, null, false), 
        ];
    }
public function definition ( ) { return [ 'title' => $ this -> faker -> sentence ( ) , 'content' => $ this -> faker -> text ( ) , 'image' => 'posts-images/' . $ this -> faker -> image ( 'public/storage/posts-images' , 640 , 480 , null , false ) , ] ; }
Define the model's default state.
Define the model ' s default state .
// con false me regresa solo: imagen.jpg