database/factories/PostCommentFactory.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 [
            'post_id' => Post::factory(),
            'user_id' => User::factory(),
            'comment' => $this->faker->sentence,
        ];
    }
public function definition ( ) { return [ 'post_id' => Post :: factory ( ) , 'user_id' => User :: factory ( ) , 'comment' => $ this -> faker -> sentence , ] ; }
Define the model's default state.
Define the model ' s default state .