profileルートの名前を変更

This commit is contained in:
shibafu
2017-11-03 18:10:50 +09:00
parent abf8b05253
commit edcc2bceaf
5 changed files with 19 additions and 17 deletions

View File

@@ -16,9 +16,11 @@ Auth::routes();
Route::get('/', 'HomeController@index')->name('home');
Route::get('/user', function() {
return redirect()->route('profile', ['name' => Auth::user()->name]);
})->middleware('auth')->name('profile');
Route::get('/user/{name?}', 'UserController@profile')->name('profile');
return redirect()->route('user.profile', ['name' => Auth::user()->name]);
})->middleware('auth')->name('user.profile');
Route::get('/user/{name?}', 'UserController@profile')->name('user.profile');
Route::get('/user/{name}/stats', 'UserController@stats')->name('user.stats');
Route::get('/user/{name}/okazu', 'UserController@okazu')->name('user.okazu');
Route::middleware('auth')->group(function () {
Route::get('/checkin', 'EjaculationController@create')->name('checkin');