Skip to content

Commit a901c8d

Browse files
committed
fix datatables when using POST method. fix yajra#49
1 parent d181b71 commit a901c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/yajra/Datatables/Datatables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @package Laravel
88
* @category Package
99
* @author Arjay Angeles <aqangeles@gmail.com>
10-
* @version 3.6.1
10+
* @version 3.6.4
1111
*/
1212

1313
use Closure;
@@ -184,7 +184,7 @@ class Datatables
184184
*/
185185
public function __construct()
186186
{
187-
$request = new Request($_GET, $_POST);
187+
$request = Request::createFromGlobals();
188188
$this->setData($this->processData($request->input()));
189189

190190
return $this;

0 commit comments

Comments
 (0)