Hello all,
Sorry if this doesn't make sense - but I'll try and explain as best as possible.
Let's start with saying I have 1 Laravel app that we use internally at my workplace and one potentially coming soon. They're not necessarily large apps as they're just for employee usage but I want to somehow link these together.
By linking I mean; sharing the same users, the same roles, having the same assets (css, images, js etc).
Each app will still require to have it's own database as I don't necessarily want to bulk up a single database and it makes it easier to maintain (at least I think it will). They both also have their own dependencies, so I don't necessarily want to have to include these on each one - especially as these can grow and grow.
So to be clear, lets say I have an domain of: http://internal.com
When I visit this I'll be required to authenticate before anything of course - then when I am, I have a list of "apps" available to access. These two could be named foo and bar for example.
When I click either of these, I want to be redirect to either of these subdomains:
Of which I will be able to access because I'm authenticated. But at some point in the future, I would maybe like to have some apps only available to certain people with a given role.
Then in either of these apps, they'll share the same assets as I mentioned above and will be using different databases so if I want to work on either of them in the future and one of them is down for maintenance - the entire system isn't out.
I hope everything makes sense and I'm not over complicating things!
Thanks :)