Migrasi Laravel menambah kontraint ke database lain

$table->foreign('user_id')->references('id')->on('main_db.users');
//                                                ^^^^^^^
Coder Comrade