I have this Route
Route::group([ 'middleware' => ['auth','lang']], function() {
// SETTINGS
Route::namespace( 'Settings' )->prefix( 'settings' )->group( function () {
// INDEX
Route::get( '/', 'SettingsController@index' );
// ACCOUNTS
Route::resource( 'accounts', 'AccountController', ['only' => ['index','store','edit','update']] );
// TAGS
Route::resource( 'tags', 'TagController', ['only' => ['index','destroy']] );
// PROFILE
Route::get('profile', 'ProfileController@index');
Route::post('profile', 'ProfileController@update');
});
Any way I can join the two PROFILE ones into one that is resource
? Whenever I try using Route::resource( 'profile', 'ProfileController', ['only' => ['index','update']] )
, it gives me an error that the method is not allowed - 405 (Method Not Allowed)
. I think it just doesn't find the update
one? I am really not sure what might be the issue.