If you want to assert exactly the same json, checkout this package that add snapshot methods to PHPUnit: https://github.com/spatie/phpunit-snapshot-assertions
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community