A
A
Abc Edc2015-08-04 14:08:38
Angular
Abc Edc, 2015-08-04 14:08:38

Is it possible to organize a similar code structure for laravel and angular?

Are there any style guides for laravel. I know Angular and like the state-type organization. Also, the fact that everything is stored logically in folders, that is, List A / ListA.routs.js ListA.module.js Services ListA.controller, etc.
And in Laravel, by default, everything is supposed to be stored in separate folders such as Controllers, etc. Not to mention heaps of routing in one file. So, is it worth moving away from this and you can link to the style guide ala john papa in angular for laravel.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2015-08-04
@gleber1

You can generally store everything at least in the root of the project, but why?
At the time of transition 4.2->5.0 Taylor muddied such counter, with logic scattering in one folder. Ie:
Users:
- UsersController
- UsersRepositry
- User
- etc...
But it did not take off, did not take root.
If you want to lay out files like this, then do it, no one forbids it. The initial structure is just a skeleton, and no one forces you to follow it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question