From a0b8812ee35aef3310cc8bf3544a2e8d7bb68a4f Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 25 Nov 2020 09:19:50 +0100 Subject: [PATCH] Update DownCommand.php As per Taylor's comment, now only passing along the Down command's options to the pre-rendering view, instead of the entire command instance. --- src/Illuminate/Foundation/Console/DownCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/DownCommand.php b/src/Illuminate/Foundation/Console/DownCommand.php index 4519fc1b3d81..390039132608 100644 --- a/src/Illuminate/Foundation/Console/DownCommand.php +++ b/src/Illuminate/Foundation/Console/DownCommand.php @@ -100,7 +100,7 @@ protected function prerenderView() { (new RegisterErrorViewPaths)(); - return view($this->option('render'), ['command' => $this])->render(); + return view($this->option('render'), ['options' => $this->options()])->render(); } /**