mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 01:04:03 +00:00
Split CompanyController and introduce standalone User Settings page
Backend: - Extract user profile methods (show, update, uploadAvatar) from CompanyController into new UserProfileController - CompanyController now only handles company concerns (updateCompany, uploadCompanyLogo) - Remove Account Settings from setting_menu config Frontend: - New /admin/user-settings page with 3 tabs: General, Profile Photo, Security (password change) - User dropdown now links to /admin/user-settings instead of /admin/settings/account-settings - Settings sidebar defaults to Company Information as first item - Remove old monolithic AccountSetting.vue
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Settings\CompanyController;
|
||||
use App\Http\Controllers\V1\Admin\Settings\UserProfileController;
|
||||
use App\Http\Requests\CompanyRequest;
|
||||
use App\Http\Requests\ProfileRequest;
|
||||
use App\Models\Invoice;
|
||||
@@ -35,8 +36,8 @@ test('get profile', function () {
|
||||
|
||||
test('update profile using a form request', function () {
|
||||
$this->assertActionUsesFormRequest(
|
||||
CompanyController::class,
|
||||
'updateProfile',
|
||||
UserProfileController::class,
|
||||
'update',
|
||||
ProfileRequest::class
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user