From 232c1b5c4e9d9b62ba80c41d39e03cb2f2b6cb65 Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 2 Dec 2024 04:38:34 +0100 Subject: [PATCH] Docs --- docs/en/index.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/en/index.rst b/docs/en/index.rst index ef2d5dea..3f5771b4 100644 --- a/docs/en/index.rst +++ b/docs/en/index.rst @@ -1185,9 +1185,15 @@ to alert developers about new migrations that are not yet being applied:: use Migrations\Middleware\PendingMigrationsMiddleware; + $config = [ + 'plugins' => [ + ... // Optionally include a list of plugins with migrations to check. + ], + ]; + $middlewareQueue ... // ErrorHandler middleware - ->add(new PendingMigrationsMiddleware($yourConfig)) + ->add(new PendingMigrationsMiddleware($config)) ... // rest