Answer the question
In order to leave comments, you need to log in
How to properly create an application structure on ReactJS + Laravel 5.3?
Share your experience in creating application structures based on the Laravel framework and the ReactJS library
Answer the question
In order to leave comments, you need to log in
On the backend: making rest-api with Laravel.
On the frontend: take react + redux and develop an application that will communicate with the back via the API.
I don't touch the App folder. In the Resources folder I create a JS folder and store everything there. If you only have an admin panel or some part only on Redux / React, then you can do it in one project. But still, the trend is such that it is better to divide into two projects, as they said above REST on Laravel and the front separately, and then you need to think why Laravel at all if you can immediately use nodejs
Similar to the above - resources contain all the js for the front-end application. Styles are there. Configs for gulp/webpack/babel/npm and other tools in the root of the project. Tests in resources along with the rest of the frontend code.
When building a project, everything is collected in public automatically.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question