Initially, I will install Laravel and set it up for a new website called admin.example.com. This will be a simple dashboard just for my use. Next I want to set up www.example1.com with all of the functionality for ecommerce, inventory control, user management, etc. Once that is up and running, I will set up www.example2.com.
Can all of these various websites share the same models, views, and controllers?
You should use route groups and domain
property for that:
Route::group(['domain' => 'example.com')], function () {
// All routes for the first domain go here.
}
来源:https://stackoverflow.com/questions/40604788/multiple-websites-with-one-laravel-installation