Support the ongoing development of Laravel.io →
Blade Forms Architecture
Last updated 1 year ago.
0

what do you need to know? Controllers are under the Http folder,resources has the views and Model are in app folder

0

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..

0

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.

0

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)

0

Do you follow a specific standard ou structure or not?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

LonnyX lonnyx Joined 30 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.