laravel migration add contraint to other database

118

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

Comments

Submit
0 Comments