Check out example codes for "how to login to mysql in homestead". It will help you in understanding the concepts better.

Code Example 1

MySQL Host Address: 192.168.10.10Username: homesteadPassword: secretPort: 3306

Learn ReactJs, React Native from akashmittal.com