We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf1d2d3 + bdd4790 commit 03d5cb9Copy full SHA for 03d5cb9
src/controllers/LogViewerController.php
@@ -27,7 +27,7 @@ public function index()
27
return Response::download(LaravelLogViewer::pathToLogFile(base64_decode(Request::input('dl'))));
28
} elseif (Request::has('del')) {
29
File::delete(LaravelLogViewer::pathToLogFile(base64_decode(Request::input('del'))));
30
- return Redirect::to(Request::url());
+ return $this->redirect(Request::url());
31
}
32
33
$logs = LaravelLogViewer::all();
@@ -38,4 +38,13 @@ public function index()
38
'current_file' => LaravelLogViewer::getFileName()
39
]);
40
41
+
42
+ private function redirect($to)
43
+ {
44
+ if (function_exists('redirect')) {
45
+ return redirect($to);
46
+ }
47
48
+ return Redirect::to($to);
49
50
0 commit comments