As far as I understand it you can structure your files anyway you want. Since Laravel uses PRS-4 for autoloading. You can place your files anywhere in the app directory. You would probably want to create ex. ACME folder and go from there.
What folder/file structure should I use for my application?
Hi all!
Currently playing and researching a lot about Laravel, as I will be using it for our application. However, since I've never really used a framework before, I have this question about what folder structure I should use for my own files.
To summarize our application:
Our app exists of several modules: Contacts, Projects, Invoices, Quotes, Agenda, To-do's
These modules need to be able to function on their own, as well as work together, obviously. I've heard about 'bundles', to separate each module's code into its own package? Although I don't want to over-complicate things. I'm actually afraid of using bundles, since it's a new concept for me.
Should I use my own custom namespace folder? (Acme? AppName?) And place all my code under that directory? Or simply use Laravel's default folders?
Currently, it's as straightforward as this:
# App
--------
controllers/app/... (eg: DashboardController, InvoicesController, ContactsController)
models/app/...
views/app/...
# Website
------------
controllers/site/... (eg: PagesController)
models/site/...
views/site/...
As you can imagine, it's quite a big application, so I want the best possible folder structure, to be able to easily maintain it for years to come.
Please or to participate in this conversation.