Laravel Multiple Sites

Viewed 1172

I need to set up two sites running from the same codebase in Laravel 4.2, I have done this before but I need some slightly different requirements this time.

Some of the assets CSS, JS and images would be the same but some would need to be overridden, I am happy to just have two public folders, with all front end assets duplicated, but if there are other suggestions that could make it easier that would be great.

My other requirement is that I would like to add a new PSR include route for site 2 that could override classes from site 1, when necessary. So I could call class user as below, site 1 would call the first class, site 2 would call the second class.

app/models/user.php

app/models/site-2/user.php

1 Answers
Related