Skip to content

Commit

Permalink
Pass the viewPath down to the view.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThompsonTLDR committed Aug 16, 2017
1 parent a907fd5 commit 7d5e063
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/Traits/LaramanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,19 +342,20 @@ public function index(Request $request)
}

return view(config('laraman.view.hintpath') . '::index', [
'paginator' => $paginator,
'rows' => collect($rows),
'columns' => $columns,
'params' => $params,
'buttons' => $buttons,
'filters' => $filters,
'limits' => array_combine($this->limits, $this->limits),
'search' => $search,
'paginator' => $paginator,
'rows' => collect($rows),
'columns' => $columns,
'params' => $params,
'buttons' => $buttons,
'filters' => $filters,
'limits' => array_combine($this->limits, $this->limits),
'search' => $search,
'searchEnabled' => $this->searchEnabled,
'location' => $location,
'header' => !empty($this->header) ? $this->header : $this->viewPath .'.header',
'footer' => !empty($this->footer) ? $this->footer : $this->viewPath . '.footer',
'extras' => $this->extras,
'location' => $location,
'viewPath' => $this->viewPath,
'header' => !empty($this->header) ? $this->header : $this->viewPath .'.header',
'footer' => !empty($this->footer) ? $this->footer : $this->viewPath . '.footer',
'extras' => $this->extras,
]);
}

Expand Down

0 comments on commit 7d5e063

Please sign in to comment.