updated excel config

This commit is contained in:
Cihan Şentürk 2024-04-25 12:18:25 +03:00 committed by GitHub
parent 3f0067f41e
commit eef5227b45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 3 deletions

View File

@ -36,17 +36,19 @@ abstract class Export implements FromCollection, HasLocalePreference, ShouldAuto
public $request_class = null;
public $row_count = 250; //number of rows that will have the dropdown
public $column_count = 25; //number of columns to be auto sized
public $column_count; //number of columns to be auto sized
public $column_validations; //selects should have column_name and options
public $row_count; //number of rows that will have the dropdown
public function __construct($ids = null)
{
$this->ids = $ids;
$this->fields = $this->fields();
$this->column_validations = $this->columnValidations();
$this->column_count = config('excel.exports.column_count');
$this->row_count = config('excel.exports.row_count');
$this->user = user();
}

View File

@ -68,6 +68,26 @@ return [
'manager' => '',
'company' => '',
],
/*
|--------------------------------------------------------------------------
| Export validations
|--------------------------------------------------------------------------
|
| Number of rows that will have the dropdown
|
*/
'row_count' => env('EXCEL_EXPORTS_ROW_COUNT', 250),
/*
|--------------------------------------------------------------------------
| Export validations
|--------------------------------------------------------------------------
|
| Number of columns to be auto sized
|
*/
'column_count' => env('EXCEL_EXPORTS_COLUMN_COUNT', 25),
],
'imports' => [