diff --git a/src/TableBlueprint.php b/src/TableBlueprint.php index 3e20f1b..9f00fc2 100644 --- a/src/TableBlueprint.php +++ b/src/TableBlueprint.php @@ -110,7 +110,7 @@ public function dropIndex(array $columns): self /** * Example: - * $table->addForeignKey('user_id', 'users', 'id', ['delete' => 'CASCADE']); + * $table->addForeignKey(['user_id'], 'users', ['id'], ['delete' => 'CASCADE']); * * @param string $foreignTable Database isolation prefix will be automatically added. */ @@ -133,7 +133,7 @@ public function addForeignKey( /** * Example: - * $table->alterForeignKey('user_id', 'users', 'id', ['delete' => 'NO ACTION']); + * $table->alterForeignKey(['user_id'], 'users', ['id'], ['delete' => 'NO ACTION']); */ public function alterForeignKey( array $columns, @@ -154,7 +154,7 @@ public function alterForeignKey( /** * Example: - * $table->dropForeignKey('user_id'); + * $table->dropForeignKey(['user_id']); */ public function dropForeignKey(array $columns): self {