How to Access localhost on mobile

I am building a web application using Laravel for APIs and React for the frontend . I want to test the app on a mobile phone. I usually test React alone, and it works, but the information from the backend is not working (authentication, CRUD, etc.). Can I access it? I run React using npm run dev — –host and Laravel using php artisan serve –host=0.0.0.0 –port=8000, but nothing is displaying except the static data.