@@ -33,7 +33,6 @@ |
||
| 33 | 33 | * CollectionEngine constructor. |
| 34 | 34 | * |
| 35 | 35 | * @param \Illuminate\Support\Collection $collection |
| 36 | - * @param \Yajra\Datatables\Request $request |
|
| 37 | 36 | */ |
| 38 | 37 | public function __construct(Collection $collection) |
| 39 | 38 | { |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | switch ($this->connection->getDriverName()) { |
| 612 | 612 | case 'oracle': |
| 613 | 613 | $sql = !$this->config |
| 614 | - ->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )'; |
|
| 614 | + ->isCaseInsensitive() ? 'REGEXP_LIKE( ' . $column . ' , ? )' : 'REGEXP_LIKE( LOWER(' . $column . ') , ?, \'i\' )'; |
|
| 615 | 615 | break; |
| 616 | 616 | |
| 617 | 617 | case 'pgsql': |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | |
| 621 | 621 | default: |
| 622 | 622 | $sql = !$this->config |
| 623 | - ->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?'; |
|
| 623 | + ->isCaseInsensitive() ? $column . ' REGEXP ?' : 'LOWER(' . $column . ') REGEXP ?'; |
|
| 624 | 624 | $keyword = Str::lower($keyword); |
| 625 | 625 | } |
| 626 | 626 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | }); |
| 64 | 64 | |
| 65 | 65 | $this->app->alias('datatables', Datatables::class); |
| 66 | - $this->app->singleton('datatables', function() { |
|
| 66 | + $this->app->singleton('datatables', function () { |
|
| 67 | 67 | return new Datatables(app('datatables.request')); |
| 68 | 68 | }); |
| 69 | 69 | |