what do you need to know? Controllers are under the Http folder,resources has the views and Model are in app folder
Fat models, skinny controllers is what I always strive for. As a project develops I often will test stuff in the controller and then move it out to a model or library once I know how all the pieces are fitting together..
I want to know how to structure the files under the Controllers / views / models? You know I mean, you have to make some sub-folders on these main folder, like "partials" etc.. To organize your project.
For views I tend to have the following structure
_layouts - page templates
_partials - view fragments (e.g. errors, header, footer)
I then usually have a directory per controller which contains the views for that controller
Controllers depend on the project, however I typically would have a sub directory for things which sit together (e.g. admin)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community