diff --git a/src/WithExportQueue.php b/src/WithExportQueue.php index c0ec660..486f194 100644 --- a/src/WithExportQueue.php +++ b/src/WithExportQueue.php @@ -20,7 +20,7 @@ trait WithExportQueue */ public function render(?string $view = null, array $data = [], array $mergeData = []) { - if (request()->ajax() && request('action') == 'exportQueue') { + if (request()->ajax() && request()->action == 'exportQueue') { return $this->exportQueue(); }