help notification mark read
This commit is contained in:
parent
276b82b27d
commit
3c0d7f3a5e
|
|
@ -38,7 +38,7 @@
|
||||||
"vinelab/http": "~1.5",
|
"vinelab/http": "~1.5",
|
||||||
"laravel/tinker": "~1.0",
|
"laravel/tinker": "~1.0",
|
||||||
|
|
||||||
"backpack/crud": "3.6.*",
|
"backpack/crud": "3.5.*",
|
||||||
|
|
||||||
"backpack/backupmanager": "~1.4",
|
"backpack/backupmanager": "~1.4",
|
||||||
"backpack/settings": "~2.1",
|
"backpack/settings": "~2.1",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
775
config/excel.php
775
config/excel.php
|
|
@ -1,683 +1,186 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Maatwebsite\Excel\Excel;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'cache' => [
|
'exports' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Enable/Disable cell caching
|
| Chunk size
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'enable' => true,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Caching driver
|
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Set the caching driver
|
| When using FromQuery, the query is automatically chunked.
|
||||||
|
|
| Here you can specify how big the chunk should be.
|
||||||
| Available methods:
|
|
||||||
| memory|gzip|serialized|igbinary|discISAM|apc|memcache|temp|wincache|sqlite|sqlite3
|
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'driver' => 'memory',
|
'chunk_size' => 1000,
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Cache settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'settings' => [
|
|
||||||
|
|
||||||
'memoryCacheSize' => '32MB',
|
|
||||||
'cacheTime' => 600,
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Memcache settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'memcache' => [
|
|
||||||
|
|
||||||
'host' => 'localhost',
|
|
||||||
'port' => 11211,
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Cache dir (for discISAM)
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'dir' => storage_path('cache'),
|
|
||||||
],
|
|
||||||
|
|
||||||
'properties' => [
|
|
||||||
'creator' => 'Maatwebsite',
|
|
||||||
'lastModifiedBy' => 'Maatwebsite',
|
|
||||||
'title' => 'Spreadsheet',
|
|
||||||
'description' => 'Default spreadsheet export',
|
|
||||||
'subject' => 'Spreadsheet export',
|
|
||||||
'keywords' => 'maatwebsite, excel, export',
|
|
||||||
'category' => 'Excel',
|
|
||||||
'manager' => 'Maatwebsite',
|
|
||||||
'company' => 'Maatwebsite',
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Sheets settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'sheets' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Default page setup
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'pageSetup' => [
|
|
||||||
'orientation' => 'portrait',
|
|
||||||
'paperSize' => '9',
|
|
||||||
'scale' => '100',
|
|
||||||
'fitToPage' => false,
|
|
||||||
'fitToHeight' => true,
|
|
||||||
'fitToWidth' => true,
|
|
||||||
'columnsToRepeatAtLeft' => ['', ''],
|
|
||||||
'rowsToRepeatAtTop' => [0, 0],
|
|
||||||
'horizontalCentered' => false,
|
|
||||||
'verticalCentered' => false,
|
|
||||||
'printArea' => null,
|
|
||||||
'firstPageNumber' => null,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Creator
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| The default creator of a new Excel file
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'creator' => 'Maatwebsite',
|
|
||||||
|
|
||||||
'csv' => [
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Delimiter
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| The default delimiter which will be used to read out a CSV file
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'delimiter' => ',',
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Enclosure
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'enclosure' => '"',
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Line endings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'line_ending' => "\r\n",
|
|
||||||
],
|
|
||||||
|
|
||||||
'export' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Autosize columns
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Disable/enable column autosize or set the autosizing for
|
|
||||||
| an array of columns ( array('A', 'B') )
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'autosize' => true,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Autosize method
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| --> PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX
|
|
||||||
| The default is based on an estimate, which does its calculation based
|
|
||||||
| on the number of characters in the cell value (applying any calculation
|
|
||||||
| and format mask, and allowing for wordwrap and rotation) and with an
|
|
||||||
| "arbitrary" adjustment based on the font (Arial, Calibri or Verdana,
|
|
||||||
| defaulting to Calibri if any other font is used) and a proportional
|
|
||||||
| adjustment for the font size.
|
|
||||||
|
|
|
||||||
| --> PHPExcel_Shared_Font::AUTOSIZE_METHOD_EXACT
|
|
||||||
| The second method is more accurate, based on actual style formatting as
|
|
||||||
| well (bold, italic, etc), and is calculated by generating a gd2 imagettf
|
|
||||||
| bounding box and using its dimensions to determine the size; but this
|
|
||||||
| method is significantly slower, and its accuracy is still dependent on
|
|
||||||
| having the appropriate fonts installed.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'autosize-method' => PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Auto generate table heading
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| If set to true, the array indices (or model attribute names)
|
|
||||||
| will automatically be used as first row (table heading)
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'generate_heading_by_indices' => true,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Auto set alignment on merged cells
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'merged_cell_alignment' => 'left',
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Pre-calculate formulas during export
|
| Pre-calculate formulas during export
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'calculate' => false,
|
'pre_calculate_formulas' => false,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Include Charts during export
|
| CSV Settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Configure e.g. delimiter, enclosure and line ending for CSV exports.
|
||||||
|
|
|
||||||
*/
|
*/
|
||||||
'includeCharts' => false,
|
'csv' => [
|
||||||
|
'delimiter' => ',',
|
||||||
/*
|
'enclosure' => '"',
|
||||||
|--------------------------------------------------------------------------
|
'line_ending' => PHP_EOL,
|
||||||
| Default sheet settings
|
'use_bom' => false,
|
||||||
|--------------------------------------------------------------------------
|
'include_separator_line' => false,
|
||||||
*/
|
'excel_compatibility' => false,
|
||||||
'sheets' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Default page margin
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| 1) When set to false, default margins will be used
|
|
||||||
| 2) It's possible to enter a single margin which will
|
|
||||||
| be used for all margins.
|
|
||||||
| 3) Alternatively you can pass an array with 4 margins
|
|
||||||
| Default order: array(top, right, bottom, left)
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'page_margin' => false,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Value in source array that stands for blank cell
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'nullValue' => null,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Insert array starting from this cell address as the top left coordinate
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'startCell' => 'A1',
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Apply strict comparison when testing for null values in the array
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'strictNullComparison' => false,
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Store settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'store' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Path
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| The path we want to save excel file to
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'path' => storage_path('exports'),
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Return info
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Whether we want to return information about the stored file or not
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'returnInfo' => false,
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| PDF Settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'pdf' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| PDF Drivers
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Supported: DomPDF, tcPDF, mPDF
|
|
||||||
*/
|
|
||||||
'driver' => 'DomPDF',
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| PDF Driver settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'drivers' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| DomPDF settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'DomPDF' => [
|
|
||||||
'path' => base_path('vendor/dompdf/dompdf/'),
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| tcPDF settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'tcPDF' => [
|
|
||||||
'path' => base_path('vendor/tecnick.com/tcpdf/'),
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| mPDF settings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'mPDF' => [
|
|
||||||
'path' => base_path('vendor/mpdf/mpdf/'),
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'filters' => [
|
'imports' => [
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Register read filters
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'registered' => [
|
'read_only' => true,
|
||||||
'chunk' => 'Maatwebsite\Excel\Filters\ChunkReadFilter',
|
|
||||||
|
'heading_row' => [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Heading Row Formatter
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Configure the heading row formatter.
|
||||||
|
| Available options: none|slug|custom
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'formatter' => 'slug',
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Enable certain filters for every file read
|
| CSV Settings
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'enabled' => [],
|
|
||||||
],
|
|
||||||
|
|
||||||
'import' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Has heading
|
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The sheet has a heading (first) row which we can use as attribute names
|
| Configure e.g. delimiter, enclosure and line ending for CSV imports.
|
||||||
|
|
|
||||||
| Options: true|false|slugged|ascii|numeric|hashed|trans|original
|
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
'csv' => [
|
||||||
'heading' => 'slugged',
|
'delimiter' => ',',
|
||||||
|
'enclosure' => '"',
|
||||||
/*
|
'escape_character' => '\\',
|
||||||
|--------------------------------------------------------------------------
|
'contiguous' => false,
|
||||||
| First Row with data or heading of data
|
'input_encoding' => 'UTF-8',
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| If the heading row is not the first row, or the data doesn't start
|
|
||||||
| on the first row, here you can change the start row.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'startRow' => 1,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Cell name word separator
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| The default separator which is used for the cell names
|
|
||||||
| Note: only applies to 'heading' settings 'true' && 'slugged'
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'separator' => '_',
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Include Charts during import
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'includeCharts' => false,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Sheet heading conversion
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Convert headings to ASCII
|
|
||||||
| Note: only applies to 'heading' settings 'true' && 'slugged'
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'to_ascii' => true,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Import encoding
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
'encoding' => [
|
|
||||||
|
|
||||||
'input' => 'UTF-8',
|
|
||||||
'output' => 'UTF-8',
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Calculate
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| By default cells with formulas will be calculated.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'calculate' => true,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Ignore empty cells
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| By default empty cells are not ignored
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'ignoreEmpty' => false,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Force sheet collection
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| For a sheet collection even when there is only 1 sheets.
|
|
||||||
| When set to false and only 1 sheet found, the parsed file will return
|
|
||||||
| a row collection instead of a sheet collection.
|
|
||||||
| When set to true, it will return a sheet collection instead.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'force_sheets_collection' => false,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Date format
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| The format dates will be parsed to
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'dates' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Enable/disable date formatting
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'enabled' => true,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Default date format
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| If set to false, a carbon object will return
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
'format' => false,
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Date columns
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'columns' => [],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Import sheets by config
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'sheets' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Example sheet
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Example sheet "test" will grab the firstname at cell A2
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'test' => [
|
|
||||||
|
|
||||||
'firstname' => 'A2',
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'views' => [
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Extension detector
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Configure here which writer type should be used when
|
||||||
|
| the package needs to guess the correct type
|
||||||
|
| based on the extension alone.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'extension_detector' => [
|
||||||
|
'xlsx' => Excel::XLSX,
|
||||||
|
'xlsm' => Excel::XLSX,
|
||||||
|
'xltx' => Excel::XLSX,
|
||||||
|
'xltm' => Excel::XLSX,
|
||||||
|
'xls' => Excel::XLS,
|
||||||
|
'xlt' => Excel::XLS,
|
||||||
|
'ods' => Excel::ODS,
|
||||||
|
'ots' => Excel::ODS,
|
||||||
|
'slk' => Excel::SLK,
|
||||||
|
'xml' => Excel::XML,
|
||||||
|
'gnumeric' => Excel::GNUMERIC,
|
||||||
|
'htm' => Excel::HTML,
|
||||||
|
'html' => Excel::HTML,
|
||||||
|
'csv' => Excel::CSV,
|
||||||
|
'tsv' => Excel::TSV,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Styles
|
| PDF Extension
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The default styles which will be used when parsing a view
|
| Configure here which Pdf driver should be used by default.
|
||||||
|
| Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
'pdf' => Excel::DOMPDF,
|
||||||
'styles' => [
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Table headings
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'th' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 12,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Strong tags
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'strong' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 12,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Bold tags
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'b' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 12,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Italic tags
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'i' => [
|
|
||||||
'font' => [
|
|
||||||
'italic' => true,
|
|
||||||
'size' => 12,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Heading 1
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'h1' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 24,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Heading 2
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'h2' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 18,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Heading 2
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'h3' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 13.5,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Heading 4
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'h4' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 12,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Heading 5
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'h5' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 10,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Heading 6
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'h6' => [
|
|
||||||
'font' => [
|
|
||||||
'bold' => true,
|
|
||||||
'size' => 7.5,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Hyperlinks
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'a' => [
|
|
||||||
'font' => [
|
|
||||||
'underline' => true,
|
|
||||||
'color' => ['argb' => 'FF0000FF'],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Horizontal rules
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
'hr' => [
|
|
||||||
'borders' => [
|
|
||||||
'bottom' => [
|
|
||||||
'style' => 'thin',
|
|
||||||
'color' => ['FF000000'],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'value_binder' => [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Default Value Binder
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| PhpSpreadsheet offers a way to hook into the process of a value being
|
||||||
|
| written to a cell. In there some assumptions are made on how the
|
||||||
|
| value should be formatted. If you want to change those defaults,
|
||||||
|
| you can implement your own default value binder.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'default' => Maatwebsite\Excel\DefaultValueBinder::class,
|
||||||
|
],
|
||||||
|
|
||||||
|
'transactions' => [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Transaction Handler
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| By default the import is wrapped in a transaction. This is useful
|
||||||
|
| for when an import may fail and you want to retry it. With the
|
||||||
|
| transactions, the previous import gets rolled-back.
|
||||||
|
|
|
||||||
|
| You can disable the transaction handler by setting this to null.
|
||||||
|
| Or you can choose a custom made transaction handler here.
|
||||||
|
|
|
||||||
|
| Supported handlers: null|db
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'handler' => 'db',
|
||||||
|
],
|
||||||
|
|
||||||
|
'temporary_files' => [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Local Temporary Path
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| When exporting and importing files, we use a temporary file, before
|
||||||
|
| storing reading or downloading. Here you can customize that path.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'local_path' => sys_get_temp_dir(),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Remote Temporary Disk
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| When dealing with a multi server setup with queues in which you
|
||||||
|
| cannot rely on having a shared local temporary path, you might
|
||||||
|
| want to store the temporary file on a shared disk. During the
|
||||||
|
| queue executing, we'll retrieve the temporary file from that
|
||||||
|
| location instead. When left to null, it will always use
|
||||||
|
| the local path. This setting only has effect when using
|
||||||
|
| in conjunction with queued imports and exports.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'remote_disk' => null,
|
||||||
|
'remote_prefix' => null,
|
||||||
|
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue