은 내가 resource
하나에 두 PROFILE 사람을 가입 할 수 있습니다이 Route
Laravel 루트 자원 및 POST
Route::group([ 'middleware' => ['auth','lang']], function() {
// SETTINGS
Route::namespace('Settings')->prefix('settings')->group(function() {
// INDEX
Route::get('/', '[email protected]');
// ACCOUNTS
Route::resource('accounts', 'AccountController', ['only' => ['index','store','edit','update']]);
// TAGS
Route::resource('tags', 'TagController', ['only' => ['index','destroy']]);
// PROFILE
Route::get('profile', '[email protected]');
Route::post('profile', '[email protected]');
});
어떤 방법이 있나요? Route::resource('profile', 'ProfileController', ['only' => ['index','update']])
을 사용할 때마다이 메서드가 허용되지 않는다는 오류가 발생합니다 (405 (Method Not Allowed)
). 나는 단지 update
을 찾지 못했을 것이라고 생각한다. 나는 무엇이 문제인지 정말로 모른다.
완벽한. 고맙습니다! – Nik