File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace SamuelTerra22 \ReportGenerator \ReportMedia ;
4
4
5
+ use Illuminate \Contracts \Container \BindingResolutionException ;
5
6
use SamuelTerra22 \ReportGenerator \ReportGenerator ;
6
7
7
8
class PdfReport extends ReportGenerator
@@ -37,10 +38,10 @@ public function make()
37
38
$ pdf ->setOption ('footer-font-size ' , 10 );
38
39
$ pdf ->setOption ('footer-left ' , 'Page [page] of [topage] ' );
39
40
$ pdf ->setOption ('footer-right ' , 'Date Printed: ' . date ('d M Y H:i:s ' ));
40
- } catch (\ReflectionException $ e ) {
41
+ } catch (\ReflectionException | BindingResolutionException $ e ) {
41
42
try {
42
43
$ pdf = \App::make ('dompdf.wrapper ' );
43
- } catch (\ReflectionException $ e ) {
44
+ } catch (\ReflectionException | BindingResolutionException $ e ) {
44
45
throw new \Exception ('Please install either barryvdh/laravel-snappy or laravel-dompdf to generate PDF Report! ' );
45
46
}
46
47
}
You can’t perform that action at this time.
0 commit comments