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

Commit

Permalink
Merge pull request #32 from antshater/fix-request
Browse files Browse the repository at this point in the history
фикс бага - в тестах не работают гет параметры
  • Loading branch information
xxxcoltxxx authored Jul 13, 2016
2 parents 86b55fe + ce39c49 commit 621eab6
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 621eab6

Please sign in to comment.