Skip to content

Commit

Permalink
fix: Required parameter $request follows optional parameter $file
Browse files Browse the repository at this point in the history
  • Loading branch information
lijingbo8119 authored Apr 21, 2021
1 parent 742a255 commit 5483a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class LogController extends Controller
{
public function index($file = null, Request $request)
public function index(Request $request, $file = null)
{
if ($file === null) {
$file = (new LogViewer())->getLastModifiedLog();
Expand Down

0 comments on commit 5483a5c

Please sign in to comment.