I have an application built out in Laravel 5.2 with a mySQL DB, I'm trying to find a way to integrate React as the frontend framework with the version of Laravel I currently have. Is this possible?
Asked
Active
Viewed 100 times
0
-
This link in for 5.4 but it may help: https://stackoverflow.com/questions/43228233/setup-laravel-5-4-to-use-react – Marc M. Nov 02 '18 at 19:08
-
Possible duplicate of [What is the difference between client-side and server-side programming?](https://stackoverflow.com/questions/13840429/what-is-the-difference-between-client-side-and-server-side-programming) – svgrafov Nov 03 '18 at 03:10
2 Answers
0
Yes it is possible.
You can find more information in the official react docs: https://reactjs.org/docs/add-react-to-a-website.html#add-react-in-one-minute

Angad Dubey
- 5,067
- 7
- 30
- 51
0
Definitively possible. You would be creating 2 apps: React for the front end and PHP/Laravel as an API for the data that your react app uses.

Jack Pilowsky
- 2,275
- 5
- 28
- 38
-
What if the laravel app is already a full fledged working application with the whole MVC model working already. Is there anyway to incorporate it so that I don't need to host it separately? – LashaunnaS Nov 02 '18 at 19:19
-
A react build file is just 1 HTML page, 1 CSS bundle file and 1 javascript file, plus any extra images you added. It can be hosted on any web server. You can setup your server to serve your React app from port 80 and your API from another port – Jack Pilowsky Nov 02 '18 at 19:34