File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ protected function buildExcelFile()
489
489
}
490
490
491
491
if (! class_exists (ExcelServiceProvider::class)) {
492
- throw new Exception ('Please install maatwebsite/excel to be able to use this function. ' );
492
+ throw new Exception ('Please composer require maatwebsite/excel to be able to use this function. ' );
493
493
}
494
494
495
495
if (! new $ this ->exportClass instanceof DataTablesExportHandler) {
@@ -783,9 +783,14 @@ public function fastExcelCallback(): Closure
783
783
784
784
/**
785
785
* @return \Rap2hpoutre\FastExcel\FastExcel
786
+ * @throws \Yajra\DataTables\Exceptions\Exception
786
787
*/
787
788
protected function buildFastExcelFile (): FastExcel
788
789
{
790
+ if (! class_exists (FastExcel::class)) {
791
+ throw new Exception ('Please composer require rap2hpoutre/fast-excel to be able to use this function. ' );
792
+ }
793
+
789
794
$ query = null ;
790
795
if (method_exists ($ this , 'query ' )) {
791
796
/** @var EloquentBuilder|QueryBuilder $query */
You can’t perform that action at this time.
0 commit comments