File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
##Change Log
10
10
11
+ ###v6.1.2
12
+ - Fix possible conflict with Laravel helpers.php file autoloading. Fix #330 .
13
+
11
14
###v6.1.1
12
15
- Fix ordering when using basic array response. Fix #322 .
13
16
Original file line number Diff line number Diff line change 26
26
"phpunit/phpunit" : " ~4.0"
27
27
},
28
28
"autoload" : {
29
- "files" : [
30
- " src/fallback.php"
31
- ],
32
29
"psr-4" : {
33
30
"Yajra\\ Datatables\\ " : " src/"
34
31
}
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ private function registerCommands()
65
65
*/
66
66
public function register ()
67
67
{
68
+ if ($ this ->isLumen ()) {
69
+ require_once 'fallback.php ' ;
70
+ }
71
+
68
72
$ this ->registerRequiredProviders ();
69
73
70
74
$ this ->app ->singleton ('datatables ' , function ($ app ) {
@@ -74,6 +78,16 @@ public function register()
74
78
$ this ->registerAliases ();
75
79
}
76
80
81
+ /**
82
+ * Check if app uses Lumen.
83
+ *
84
+ * @return bool
85
+ */
86
+ private function isLumen ()
87
+ {
88
+ return str_contains ($ this ->app ->version (), 'Lumen ' );
89
+ }
90
+
77
91
/**
78
92
* Register 3rd party providers.
79
93
*/
You can’t perform that action at this time.
0 commit comments