rename view/route

This commit is contained in:
shibafu
2020-05-24 17:35:58 +09:00
parent 019412c72a
commit 2f4c61c900
4 changed files with 8 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ SQL
return view('user.profile')->with(compact('user', 'ejaculations', 'tags'));
}
public function statsAll($name)
public function stats($name)
{
$user = User::where('name', $name)->first();
if (empty($user)) {
@@ -74,7 +74,7 @@ SQL
$availableMonths = $this->makeStatsAvailableMonths($user);
$graphData = $this->makeGraphData($user);
return view('user.stats.all')->with(compact('user', 'graphData', 'availableMonths'));
return view('user.stats.index')->with(compact('user', 'graphData', 'availableMonths'));
}
public function statsYearly($name, $year)