1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Merge pull request #4145 from beganovich/v2-change-text-on-test-pdf

(v5) Update text on test PDF
This commit is contained in:
David Bomba 2020-10-10 07:37:09 +11:00 committed by GitHub
commit 14bcc07da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')