split controller to Profile* and Account*, sort tables by last change

This commit is contained in:
2018-07-26 22:32:05 +02:00
parent a71fed254a
commit 72011feea9
4 changed files with 87 additions and 73 deletions
+8 -5
View File
@@ -31,12 +31,15 @@ Route::group(['middleware' => 'auth'], function () {
'prefix' => 'profile',
], function () {
Route::get('edit', 'ProfileController@editProfile')->name('profile.edit');
Route::post('edit', 'ProfileController@storeProfile')->name('profile.store');
Route::post('store', 'ProfileController@storeProfile')->name('profile.store');
});
Route::post('create', 'TableController@storeNew')->name('table.storeNew');
Route::get('logins', 'ProfileController@editAccount')->name('account.edit');
Route::post('logins', 'ProfileController@storeAccount')->name('account.store');
Route::group([
'prefix' => 'account',
], function () {
Route::get('edit', 'AccountController@editAccount')->name('account.edit');
Route::post('store', 'AccountController@storeAccount')->name('account.store');
Route::get('forget-social-login/{id}', 'AccountController@forgetSocialLogin')->name('forget-identity');
});
});