I'm currently working on a project which has multiple loosely coupled modules (20+) and i have decided to go with Laravel 5 and AngularJs. I'm using yeoman angularify generator for AngularJS. I can't decide on application structure, i would ideally want each sub-module to be a different app as it will be easy for developers to work on separate apps independently.
mylab/
app/
Http/
Controllers/
SomeController.php # API's that will be used across all apps
...
public/
bower_components/
angular/
bootstrap/
scripts/
angular.Modules.js #custom modules to be used across all apps
..
resources/
views/
.. #landing page view
Sub-App1/
app/
Http/
Controllers/
SubApp1Controller #sub-app1 specific API's
..
public/
bower_components/
repo1/ #specific to sub-app1
...
resources/
AngularApp1 #SPA for sub-app1
views/
Sub-App2/
app/
...
And for routing, i would like something like :
http://mylabs //login OR landing Page
http://mylabs/subapp/route1/123someid
What is the best way to achieve this in Laravel ?
Is this structure good enough, scalable, manageable ?
If not is there a better way to achieve this ?