Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
фикс бага - в тестах не работаю гет параметры
Browse files Browse the repository at this point in the history
++
  • Loading branch information
antshater committed Jul 13, 2016
1 parent 86b55fe commit ce39c49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GridTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;

class GridTable
{
Expand Down Expand Up @@ -63,7 +64,7 @@ private function addSelectsToDataProvider($columns)

private function getRequestData($key, $default = null, $access_string = null)
{
$this->request = $this->request ?: \Request::capture();
$this->request = $this->request ?: app(Request::class);
$data = json_decode($this->request->input($key), true);
return $access_string ? array_get($data, $access_string, $default) : ($data ?: $default);

Expand Down

0 comments on commit ce39c49

Please sign in to comment.