All notable changes to laravel-docuware
will be documented in this file.
- Dropped support below PHP 8.1
- Dropped Support below Laravel 9.0
- Added dynamic timeout via the configuration file
'timeout' => env('DOCUWARE_TIMEOUT', 30),
- Dropped date methods dateFrom & dateUntil (BREAKING!)
->dateFrom(Carbon::create(2021, 3, 1))
->dateUntil(Carbon::create(2021, 4, 1))
- Added a more flexible way to filter date fields
->filterDate('DWSTOREDATETIME','>=',Carbon::create(2021, 3, 1))
->filterDate('DWSTOREDATETIME','<',Carbon::create(2021, 4, 1))
- Added support for Table Fields that have been implemented in Docuware >= 7.1
- Added search parameters into the configurations
'search' => [
'operation' => 'And',
'force_refresh' => true,
'include_suggestions' => false,
'additional_result_fields' => [],
],
],
- Added dynamic test configuration values
'tests' => [
'file_cabinet_id' => env('DOCUWARE_TESTS_FILE_CABINET_ID'),
'dialog_id' => env('DOCUWARE_TESTS_DIALOG_ID'),
'basket_id' => env('DOCUWARE_TESTS_BASKET_ID'),
'document_id' => 1,
'document_file_size_preview' => (int) env('DOCUWARE_TESTS_DOCUMENT_FILE_SIZE_PREVIEW'),
'document_file_size' => (int) env('DOCUWARE_TESTS_DOCUMENT_FILE_SIZE'),
'document_ids' => [1, 2],
'documents_file_size' => (int) env('DOCUWARE_TESTS_DOCUMENTS_FILE_SIZE'),
'field_name' => env('DOCUWARE_TESTS_FIELD_NAME'),
],
-
Added
DOCUWARE_COOKIES
property to the config.php. This allows the user to manually set the DocuWare Request cookie instead of regenerating it after every cache reset. There is currently a DocuWare limitation with available seats per license, which can cause issues if you renew the request cookie too many times. The current lifespan of a DocuWare cookie is one year. -
Added
DOCUWARE_CACHE_DRIVER
property to the config.php. This allows the user to manually set the default Cache Driver, which is used to store the DocuWare Request Cookie. -
Removed Solutions for Errors (Facade/Ignition).
- Added
error
property to theDocumentPaginator
. This is used for failed requests otherwise it is null. When the request fails for any reason an ErrorBag is added with more information. Example:
CodebarAg\DocuWare\DTO\DocumentPaginator {
...
+error: CodebarAg\DocuWare\DTO\ErrorBag {
+code: 422
+message: "'00000000-0000-0000-0000-0000000000000' is not valid cabinet id"
}
}
- Stable release.
- [Breaking Change]: Searching in multiple file cabinets have been changed.
The search no longer supports
additionalFileCabinets()
. Please usefileCabinets()
instead. Example:
$paginator = DocuWare::search()
->fileCabinet('id-first')
->additionalFileCabinets(['id-second'])
->get();
Changed to:
$paginator = DocuWare::search()
->fileCabinets(['id-first', 'id-second'])
->get();
- Added valid until date for the encrypted URL.
- Added feature to create encrypted URL.
- Added new environment variable for the passphrase
DOCUWARE_PASSPHRASE
.
- Added feature to upload document with index values.
- The default cookie lifetime changed to 1 year.
- Added nullable fields for the search.
- It is no longer required to set the dialog to search documents.
- [Breaking Change] Changed DOCUWARE_USER environment to DOCUWARE_USERNAME for a clear labelling
- [Breaking Change] Changed DocumentPaginator property items to documents for a clear labelling
- Authentication is completely handled by the package now. No need to login
(
DocuWare::login
) or logout (DocuWare::logout
). - Added new environment variable cookie_lifetime to overwrite the lifetime of the authentication cookie.
- DTO fake methods added
- initial release