diff --git a/src/Database/Migrations/2017_05_28_115649_create_gates_table.php b/src/Database/Migrations/2017_05_28_115649_create_gates_table.php index 9c96833..9a2f2b7 100644 --- a/src/Database/Migrations/2017_05_28_115649_create_gates_table.php +++ b/src/Database/Migrations/2017_05_28_115649_create_gates_table.php @@ -46,7 +46,7 @@ public function up() $table->foreign('user_id') ->references('id') - ->on('users') + ->on(config('brandenburg.user_table_name')) ->onDelete('cascade'); $table->primary(['role_id', 'user_id']);