Controllers
Namespace: Unusualify\Modularous\Http\Controllers
Location: src/Http/Controllers/
All HTTP controllers in the Modularous package. They form a four-level hierarchy rooted at Controller, with specialized controllers for admin panel, REST APIs, authentication, and utility endpoints.
Inheritance Hierarchy
Illuminate\Routing\Controller
└── Controller
├── CoreController
│ ├── PanelController
│ │ └── BaseController ← standard CRUD admin controllers
│ ├── ApiController ← REST API base
│ └── FrontController ← public-facing frontend base
└── (Auth\Controller → Auth\LoginController, RegisterController, …)Base Classes
| Class | File | Purpose |
|---|---|---|
| Controller | Controller.php | Root controller — middleware utilities, exception handler binding |
| CoreController | CoreController.php | Module discovery, repository init, route config |
| PanelController | PanelController.php | Authorization, scoping, pagination for admin panel |
| BaseController | BaseController.php | Full CRUD (index/create/store/edit/update/destroy) + Inertia support |
| ApiController | ApiController.php | REST API base — versioning, rate-limiting, includes, bulk ops |
| FrontController | FrontController.php | Abstract base for public-facing routes |
Specialized Controllers
| Class | File | Purpose |
|---|---|---|
| ChatController | ChatController.php | Chat messages, attachments, pinned messages |
| CurrencyExchangeController | CurrencyExchangeController.php | Exchange rates and currency conversion |
| DashboardController | DashboardController.php | Admin dashboard with configurable block items |
| FileLibraryController | FileLibraryController.php | File uploads, local and cloud (S3/Azure) |
| FilepondController | FilepondController.php | Temporary Filepond upload/revert/preview |
| GlideController | GlideController.php | On-the-fly image transformation via Glide |
| ImpersonateController | ImpersonateController.php | Admin user impersonation |
| MediaLibraryController | MediaLibraryController.php | Image uploads with dimensions, alt text, captions |
| MetricController | MetricController.php | Metric items with connectors and date-range filtering |
| PasswordController | PasswordController.php | Password reset and generation |
| ProcessController | ProcessController.php | Process workflow status and field updates |
| ProfileController | ProfileController.php | User profile — info, security, company |
| TagController | TagController.php | Tag search and creation |
| UIPreferencesController | UIPreferencesController.php | Persist sidebar/topbar/navigation preferences |
| VerificationController | VerificationController.php | Email address verification |
Authentication Controllers
All under src/Http/Controllers/Auth/ (namespace …\Auth).
| Class | File | Purpose |
|---|---|---|
| Auth\Controller | Auth/Controller.php | Base for auth workflows, guest middleware |
| LoginController | Auth/LoginController.php | Login form + 2FA |
| RegisterController | Auth/RegisterController.php | User registration with optional company |
| ForgotPasswordController | Auth/ForgotPasswordController.php | Send password-reset email |
| PreRegisterController | Auth/PreRegisterController.php | Email verification before registration |
| CompleteRegisterController | Auth/CompleteRegisterController.php | Finish registration after token validation |
| ResetPasswordController | Auth/ResetPasswordController.php | Password reset after token validation |
API Controllers
Under src/Http/Controllers/API/.
| Class | File | Purpose |
|---|---|---|
| API\LanguageController | API/LanguageController.php | Serve translation strings via JSON API |