From 8fbfdeab538448e65adb9b4a0b48e40b591577d1 Mon Sep 17 00:00:00 2001 From: Tropicalista Date: Sat, 3 Feb 2018 15:58:08 +0100 Subject: [PATCH] FIx error when catch is executed --- src/Helpers/DatabaseManager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Helpers/DatabaseManager.php b/src/Helpers/DatabaseManager.php index 0e2e209..5e640cf 100755 --- a/src/Helpers/DatabaseManager.php +++ b/src/Helpers/DatabaseManager.php @@ -37,7 +37,7 @@ private function migrate($outputLog) Artisan::call('migrate', ["--force"=> true], $outputLog); } catch(Exception $e){ - return $this->response($e->getMessage()); + return $this->response($e->getMessage(), $outputLog); } return $this->seed($outputLog); @@ -55,7 +55,7 @@ private function seed($outputLog) Artisan::call('db:seed', [], $outputLog); } catch(Exception $e){ - return $this->response($e->getMessage()); + return $this->response($e->getMessage(), $outputLog); } return $this->response(trans('installer_messages.final.finished'), 'success', $outputLog); @@ -69,7 +69,7 @@ private function seed($outputLog) * @param collection $outputLog * @return array */ - private function response($message, $status = 'danger', $outputLog) + private function response($message, $outputLog, $status = 'danger') { return [ 'status' => $status,