mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-16 09:44:06 +00:00
Reorganize Admin/General: 14 controllers down to 6
Move global reference data to SuperAdmin: - CountriesController, CurrenciesController (not company-scoped) Merge exchange rate operations into ExchangeRateProviderController: - GetAllUsedCurrenciesController -> usedCurrenciesWithoutRate() - BulkExchangeRateController -> bulkUpdate() Consolidate single-action controllers: - DateFormatsController + TimeFormatsController + TimezonesController -> FormatsController - NextNumberController + NumberPlaceholdersController -> SerialNumberController - SearchUsersController merged into SearchController::users()
This commit is contained in:
@@ -36,4 +36,15 @@ class SearchController extends Controller
|
||||
'users' => $users ?? [],
|
||||
]);
|
||||
}
|
||||
|
||||
public function users(Request $request)
|
||||
{
|
||||
$this->authorize('create', User::class);
|
||||
|
||||
$users = User::whereEmail($request->email)
|
||||
->latest()
|
||||
->paginate(10);
|
||||
|
||||
return response()->json(['users' => $users]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user