Menu

## AdminAccountant
in package

AdminAccountant.php : 20

AdminAccountant Middleware

Enforces access control for the admin/accountant dashboard. Only Admin (ID 3) and Accountant (ID 11) users can proceed. Other users are redirected to their respective dashboards:

- SuperAdmin (ID 1) → /superadmin/dashboard
- Teacher (ID 5) → /teacher/dashboard
- Student (ID 6) → /student/dashboard
- Receptionist (ID 10) → /receptionist/dashboard
- All others → 404 Unauthorized

### Table of Contents

#### Methods

handle() : mixed
  Handle an incoming request.

### Methods

#### handle()

AdminAccountant.php : 32

Handle an incoming request.

`public handle(Request $request, Closure $next) : mixed`

Routes non-admin/accountant users to appropriate dashboards or returns 404 if user has no authorized route.

##### Parameters

$request : Request
$next : Closure

## Search results