From f2390de9b35d8a2bb34584e9b63b8d37c64b6e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 9 Oct 2020 15:12:50 +0200 Subject: [PATCH] Change text on test PDF --- app/Http/Controllers/SetupController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index a4a18129e870..01bfb592f59f 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -20,7 +20,6 @@ use App\Models\Account; use App\Utils\SystemHealth; use Illuminate\Http\Response; use Illuminate\Support\Facades\Artisan; -use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Storage; @@ -122,7 +121,7 @@ class SetupController extends Controller /* Create the first account. */ if (Account::count() == 0) { - $account = CreateAccount::dispatchNow($request->all()); + CreateAccount::dispatchNow($request->all()); } return redirect('/'); @@ -154,7 +153,8 @@ class SetupController extends Controller /** * Return status based on check of SMTP connection. * - * @return Response + * @param CheckMailRequest $request + * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Http\JsonResponse|Response */ public function checkMail(CheckMailRequest $request) { @@ -191,7 +191,7 @@ class SetupController extends Controller return $this->testPhantom(); } - Browsershot::url('https://www.invoiceninja.com') + Browsershot::html('PDF GENERATION WORKS! Thank you for using Invoice Ninja!') ->noSandbox() ->savePdf( public_path('test.pdf')