From 37631a1d499567633362cbbe8227d6d372369f61 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sat, 10 Aug 2019 16:19:52 -0400 Subject: [PATCH] Missing return statement (#1673) Otherwise this errors out with $host not being found --- app/Http/Controllers/Admin/DatabaseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/DatabaseController.php b/app/Http/Controllers/Admin/DatabaseController.php index 777b27792..df25200af 100644 --- a/app/Http/Controllers/Admin/DatabaseController.php +++ b/app/Http/Controllers/Admin/DatabaseController.php @@ -131,7 +131,7 @@ class DatabaseController extends Controller sprintf('There was an error while trying to connect to the host or while executing a query: "%s"', $exception->getMessage()) )->flash(); - redirect()->route('admin.databases')->withInput($request->validated()); + return redirect()->route('admin.databases')->withInput($request->validated()); } else { throw $exception; }