Skip to content

Commit

Permalink
Make view path a variable (#197)
Browse files Browse the repository at this point in the history
* Make view path a variable

* Typo

* Update LogViewerController.php
  • Loading branch information
khendrickx authored and rap2hpoutre committed Aug 19, 2019
1 parent 30fffea commit 1271590
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/controllers/LogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class LogViewerController extends BaseController
*/
private $log_viewer;

/**
* @var string
*/
protected $view_log = 'laravel-log-viewer::log';

/**
* LogViewerController constructor.
*/
Expand Down Expand Up @@ -74,7 +79,7 @@ public function index()
}
}

return app('view')->make('laravel-log-viewer::log', $data);
return app('view')->make($this->view_log, $data);
}

/**
Expand Down

0 comments on commit 1271590

Please sign in to comment.