Skip to content

Commit 9d053db

Browse files
committed
fix: integration error message
1 parent 0efce0c commit 9d053db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Services/DataTable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ protected function buildExcelFile()
489489
}
490490

491491
if (! class_exists(ExcelServiceProvider::class)) {
492-
throw new Exception('Please composer require 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.');
493493
}
494494

495495
if (! new $this->exportClass instanceof DataTablesExportHandler) {
@@ -634,7 +634,7 @@ public function pdf()
634634
public function snappyPdf(): Response
635635
{
636636
if (! class_exists(PdfWrapper::class)) {
637-
throw new Exception('You need to install barryvdh/laravel-snappy to be able to use this feature.');
637+
throw new Exception('Please `composer require barryvdh/laravel-snappy` to be able to use this feature.');
638638
}
639639

640640
/** @var \Barryvdh\Snappy\PdfWrapper $snappy */
@@ -788,7 +788,7 @@ public function fastExcelCallback(): Closure
788788
protected function buildFastExcelFile(): FastExcel
789789
{
790790
if (! class_exists(FastExcel::class)) {
791-
throw new Exception('Please composer require rap2hpoutre/fast-excel to be able to use this function.');
791+
throw new Exception('Please `composer require rap2hpoutre/fast-excel` to be able to use this function.');
792792
}
793793

794794
$query = null;

0 commit comments

Comments
 (0)