The ECONNRESET error in Postman when working with Laravel and Firestore basically indicates that the connection was reset during the communication process. This often happens when the server abruptly closes the connection before the response is complete.
Here is a solution that may work.
Verify that your firebase.json file contains the correct credentials. Ensure your Firebase project is properly set up and has Firestore enabled.
Check that the $collection and $documentId variables are defined correctly.
In Postman, increase the request timeout settings. Also in your Laravel app, consider increasing PHP script execution time