I have done this on a project in the past, but you need to be careful with the Artisan commands you run.
Working with your example I would do the following;
app/database/migrations/users
- Migrations for your user database live here
app/database/migrations/content
- Migrations for your content database live here
You will also need to create appropriate database connections to your config;
In app/config/database.php
;
<?php
return [
'connections' => [
'users' => [
// Usual database connection details here
],
'content_site1' => [
// Usual database connection details here
],
'content_site2' => [
// Usual database connection details here
]
]
];
Once you have this all configured you should be able to run php artisan migrate --path app/database/migrations/users --database users
to migrate your users database, and php artisan migrate --path app/database/migrations/content --database content_site1
for your content site. Remember change the database param for each connection you want to run the migration on.