Running the following code throws an unhandled exception. This should be handled more elegantly. $sheetName = ''; $pathToSendToBrowser = \DPRMC\Excel::simple( $rows, $totals, $sheetName, $path, $options );