How dibaliqaja/pesantren-cms works
Pesantren CMS is a Laravel management system for pesantren administrators and staff, with a separate santri-facing API. The main workflow is authenticated users managing student records, fees and payments, cash-book entries, correspondence, and user accounts; actions are recorded in an activity log and persisted through Eloquent models. The README also documents API authentication, profile/password changes, cash-book access, and syahriah payment history. API routes and several controllers were not excerpted, so their wiring is represented only where documented, not inferred.
Main entry points: web.php Web route dispatch · LogActivity.php Activity logger · api.php API route dispatch · Santri.php Student record
Components 28
Admin web panel
- Web authentication
app/Http/Controllers/Auth/LoginController.php - Dashboard
app/Http/Controllers/Web/HomeController.php - Student management
app/Http/Controllers/Web/SantriController.php - User management
app/Http/Controllers/Web/UserController.php - Fee configuration
app/Http/Controllers/Web/CostController.php - Registration payments
app/Http/Controllers/Web/RegistrationCostController.php - Syahriah payments
app/Http/Controllers/Web/SyahriahController.php - Cash book
app/Http/Controllers/Web/CashBookController.php - Mail management
app/Http/Controllers/Web/InMailController.php - Outgoing mail
app/Http/Controllers/Web/OutMailController.php - Activity history
app/Http/Controllers/Web/LogActivityController.php
Santri API
- API authentication
app/Http/Controllers/Api/AuthController.php - API cash book
app/Http/Controllers/Api/CashBookController.php - Profile and password
app/Http/Controllers/Api/ProfileController.php - Payment history
app/Http/Controllers/Api/SyahriahController.php
Domain and persistence
- Activity logger
app/Helpers/LogActivity.php - Domain records
app/Models - User and identity
app/Models/User.php - Student record
app/Models/Santri.php - Syahriah record
app/Models/Syahriah.php - Activity record
app/Models/LogActivity.php
Request and access
- Web route dispatch
routes/web.php - API route dispatch
routes/api.php - Route registration
app/Providers/RouteServiceProvider.php - Role authorization
app/Providers/AuthServiceProvider.php - Shared controller base
app/Http/Controllers/Controller.php
Other components
- Administrator / staff
- Santri app user
Connections 42
- Administrator / staff → Web route dispatch: requests pages
routes/web.php - Santri app user → API route dispatch: uses API
- Route registration → Web route dispatch: registers routes
app/Providers/RouteServiceProvider.php - Route registration → API route dispatch: registers routes
app/Providers/RouteServiceProvider.php - Web route dispatch → Web authentication: dispatches
routes/web.php - Web route dispatch → Dashboard: dispatches
routes/web.php - Web route dispatch → Student management: dispatches
routes/web.php - Web route dispatch → User management: dispatches
routes/web.php - Web route dispatch → Fee configuration: dispatches
routes/web.php - Web route dispatch → Registration payments: dispatches
routes/web.php - Web route dispatch → Syahriah payments: dispatches
routes/web.php - Web route dispatch → Cash book: dispatches
routes/web.php - Web route dispatch → Mail management: dispatches
routes/web.php - Web route dispatch → Outgoing mail: dispatches
routes/web.php - Web route dispatch → Activity history: dispatches
routes/web.php - API route dispatch → API authentication: dispatches
- API route dispatch → API cash book: dispatches
- API route dispatch → Profile and password: dispatches
- API route dispatch → Payment history: dispatches
- Web authentication → Activity logger: records activity
app/Http/Controllers/Auth/LoginController.php - Student management → Activity logger: records activity
app/Http/Controllers/Web/SantriController.php - Student management → Student record: reads and writes
app/Http/Controllers/Web/SantriController.php - User management → Activity logger: records activity
app/Http/Controllers/Web/UserController.php - Fee configuration → Activity logger: records activity
app/Http/Controllers/Web/CostController.php - Registration payments → Activity logger: records activity
app/Http/Controllers/Web/RegistrationCostController.php - Syahriah payments → Activity logger: records activity
app/Http/Controllers/Web/SyahriahController.php - Cash book → Activity logger: records activity
app/Http/Controllers/Web/CashBookController.php - Mail management → Activity logger: records activity
app/Http/Controllers/Web/InMailController.php - Outgoing mail → Activity logger: records activity
app/Http/Controllers/Web/OutMailController.php - Activity history → Activity record: queries history
app/Http/Controllers/Web/LogActivityController.php - Activity logger → Activity record: creates records
app/Helpers/LogActivity.php - Profile and password → User and identity: reads and updates
app/Http/Controllers/Api/ProfileController.php - Profile and password → Student record: reads and updates
app/Http/Controllers/Api/ProfileController.php - Profile and password → Activity logger: records activity
app/Http/Controllers/Api/ProfileController.php - Payment history → Syahriah record: queries payments
app/Http/Controllers/Api/SyahriahController.php - Payment history → User and identity: uses identity
app/Http/Controllers/Api/SyahriahController.php - Web authentication → User and identity: authenticates
app/Http/Controllers/Auth/LoginController.php - Role authorization → User and identity: checks roles
app/Providers/AuthServiceProvider.php - Shared controller base → Student management: base class
app/Http/Controllers/Web/SantriController.php - Student record → User and identity: relates user
app/Models/Santri.php - Student record → Syahriah record: relates payments
app/Models/Santri.php - Syahriah record → Student record: belongs to
app/Models/Syahriah.php