File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " samuelterra22/laravel-report-generator" ,
3
- "description" : " Rapidly Generate Simple Pdf & Excel Report on Laravel 5 (Using Barryvdh/DomPdf or Barryvdh/laravel-snappy & maatwebsite/excel)" ,
3
+ "description" : " Rapidly Generate Simple Pdf & Excel Report on Laravel 6 (Using Barryvdh/DomPdf or Barryvdh/laravel-snappy & maatwebsite/excel)" ,
4
4
"keywords" : [
5
5
" laravel" ,
6
6
" excel" ,
17
17
}
18
18
],
19
19
"require" : {
20
- "php" : " >=5.5.9 " ,
20
+ "php" : " >=7.1.0 " ,
21
21
"illuminate/support" : " *" ,
22
- "maatwebsite/excel" : " ~2 .1.0 "
22
+ "maatwebsite/excel" : " ^3 .1.* "
23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {
Original file line number Diff line number Diff line change 3
3
namespace SamuelTerra22 \ReportGenerator ;
4
4
5
5
use Config ;
6
+ use Illuminate \Support \Str ;
6
7
7
8
class ReportGenerator
8
9
{
@@ -82,7 +83,7 @@ private function mapColumns(Array $columns)
82
83
83
84
foreach ($ columns as $ name => $ data ) {
84
85
if (is_int ($ name )) {
85
- $ result [$ data ] = snake_case ($ data );
86
+ $ result [$ data ] = Str:: snake ($ data );
86
87
} else {
87
88
$ result [$ name ] = $ data ;
88
89
}
Original file line number Diff line number Diff line change 3
3
namespace SamuelTerra22 \ReportGenerator ;
4
4
5
5
use Illuminate \Support \ServiceProvider as IlluminateServiceProvider ;
6
+ use Illuminate \Support \Str ;
6
7
use SamuelTerra22 \ReportGenerator \ReportMedia \CSVReport ;
7
8
use SamuelTerra22 \ReportGenerator \ReportMedia \ExcelReport ;
8
9
use SamuelTerra22 \ReportGenerator \ReportMedia \PdfReport ;
@@ -79,6 +80,6 @@ public function provides()
79
80
80
81
protected function isLumen ()
81
82
{
82
- return str_contains ($ this ->app ->version (), 'Lumen ' );
83
+ return Str:: contains ($ this ->app ->version (), 'Lumen ' );
83
84
}
84
85
}
You can’t perform that action at this time.
0 commit comments