Skip to content

Commit addbd09

Browse files
committed
Use app helper instead of resolve.
Fix #2351.
1 parent b211e3c commit addbd09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/DataTable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function render($view, $data = [], $mergeData = [])
176176
*/
177177
public function request()
178178
{
179-
return $this->request ?: $this->request = resolve('datatables.request');
179+
return $this->request ?: $this->request = app('datatables.request');
180180
}
181181

182182
/**
@@ -520,7 +520,7 @@ public function pdf()
520520
public function snappyPdf()
521521
{
522522
/** @var \Barryvdh\Snappy\PdfWrapper $snappy */
523-
$snappy = resolve('snappy.pdf.wrapper');
523+
$snappy = app('snappy.pdf.wrapper');
524524
$options = config('datatables-buttons.snappy.options');
525525
$orientation = config('datatables-buttons.snappy.orientation');
526526

0 commit comments

Comments
 (0)