mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Merge pull request #4145 from beganovich/v2-change-text-on-test-pdf
(v5) Update text on test PDF
This commit is contained in:
commit
14bcc07da6
@ -20,7 +20,6 @@ use App\Models\Account;
|
|||||||
use App\Utils\SystemHealth;
|
use App\Utils\SystemHealth;
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
use Illuminate\Support\Facades\File;
|
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
@ -122,7 +121,7 @@ class SetupController extends Controller
|
|||||||
|
|
||||||
/* Create the first account. */
|
/* Create the first account. */
|
||||||
if (Account::count() == 0) {
|
if (Account::count() == 0) {
|
||||||
$account = CreateAccount::dispatchNow($request->all());
|
CreateAccount::dispatchNow($request->all());
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect('/');
|
return redirect('/');
|
||||||
@ -154,7 +153,8 @@ class SetupController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Return status based on check of SMTP connection.
|
* 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)
|
public function checkMail(CheckMailRequest $request)
|
||||||
{
|
{
|
||||||
@ -191,7 +191,7 @@ class SetupController extends Controller
|
|||||||
return $this->testPhantom();
|
return $this->testPhantom();
|
||||||
}
|
}
|
||||||
|
|
||||||
Browsershot::url('https://www.invoiceninja.com')
|
Browsershot::html('PDF GENERATION WORKS! Thank you for using Invoice Ninja!')
|
||||||
->noSandbox()
|
->noSandbox()
|
||||||
->savePdf(
|
->savePdf(
|
||||||
public_path('test.pdf')
|
public_path('test.pdf')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user