feat: 인증 및 권한 시스템 개선

- LoginController: 로그인 처리 개선
- UserPermissionController: 권한 관리 기능 개선
- User 모델: 권한 관련 메서드 추가
- AuthService: 인증 서비스 로직 개선
- Middleware 추가
- bootstrap/app.php: 미들웨어 등록
- 권한 관리 뷰 개선 (user-permissions, users)
This commit is contained in:
2025-11-30 21:04:32 +09:00
parent 76c8a94e4f
commit 127c2fe877
10 changed files with 234 additions and 16 deletions

View File

@@ -13,7 +13,16 @@
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
//
// 미들웨어 별칭 등록
$middleware->alias([
'hq.member' => \App\Http\Middleware\EnsureHQMember::class,
'super.admin' => \App\Http\Middleware\EnsureSuperAdmin::class,
]);
// auth 미들웨어 그룹에 HQ 검증 추가
$middleware->appendToGroup('web', [
// 기본 web 미들웨어에는 추가하지 않음 (auth에서만 적용)
]);
})
->withExceptions(function (Exceptions $exceptions): void {
//