Added the Whkhtml2pdf bin file config setting to the .env file

This commit is contained in:
Dave Earley 2016-07-08 13:55:42 +01:00
parent e64ccbba2b
commit 91a9f9e41e
3 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,9 @@ DB_DATABASE=attendize
DB_USERNAME=attendize
DB_PASSWORD=attendize
# https://github.com/NitMedia/wkhtml2pdf#driver-types
WKHTML2PDF_BIN_FILE=wkhtmltopdf-amd64
MAIL_DRIVER=smtp
MAIL_PORT=25
MAIL_ENCRYPTION=

View File

@ -138,6 +138,7 @@ class InstallerController extends Controller
"MAIL_USERNAME={$mail['username']}\n".
"MAIL_FROM_NAME=\"{$mail['from_name']}\"\n".
"MAIL_FROM_ADDRESS={$mail['from_address']}\n".
"WKHTML2PDF_BIN_FILE=wkhtmltopdf-amd64\n".
"MAIL_PASSWORD={$mail['password']}\n\n";
$fp = fopen(base_path().'/.env', 'w');

View File

@ -4,6 +4,6 @@ return [
'debug' => env('APP_DEBUG_PDF', false),
'binpath' => 'lib/',
'binfile' => 'wkhtmltopdf-amd64',
'binfile' => env('WKHTML2PDF_BIN_FILE', 'wkhtmltopdf-amd64'),
'output_mode' => 'I',
];