How kupxzu/id-generator works
id-generator is a Laravel/Inertia application for creating and managing department ID cards, with configurable templates, user authentication, and account settings. The main workflow is a user entering the ID-card area, where controllers load or save card and template data and render Inertia pages. Fortify handles registration and security flows. The source excerpts show controller/model and route relationships, but the README gives no further capability detail; frontend behavior beyond named pages is not sampled.
Main entry points: IdCardController.php ID card controller · web.php Web routes · DepartmentTemplateController.php Template controller · ProfileController.php Profile settings
Components 21
ID card management
- ID card controller
app/Http/Controllers/IdCardController.php - ID card pages
resources/js/pages/id-cards - ID card records
app/Models/IdCard.php - Public file storage
- TEC-IT barcode API
Template management
- Template controller
app/Http/Controllers/DepartmentTemplateController.php - Template page
resources/js/pages/id-cards/templates.tsx - Department templates
app/Models/DepartmentTemplate.php
Authentication and accounts
- Fortify configuration
app/Providers/FortifyServiceProvider.php - User registration
app/Actions/Fortify/CreateNewUser.php - Profile settings
app/Http/Controllers/Settings/ProfileController.php - Security settings
app/Http/Controllers/Settings/SecurityController.php - Profile page
resources/js/pages/settings/profile.tsx - Security page
resources/js/pages/settings/security.tsx - User account
app/Models/User.php
Web request and UI
- Web routes
routes/web.php - Settings routes
routes/settings.php - Inertia middleware
app/Http/Middleware/HandleInertiaRequests.php - Appearance middleware
app/Http/Middleware/HandleAppearance.php - Application bootstrap
bootstrap/app.php
Other components
- User
Connections 21
- User → Web routes: requests pages
routes/web.php - Web routes → ID card controller: routes to
routes/web.php - ID card controller → ID card records: reads and writes
app/Http/Controllers/IdCardController.php - ID card controller → Department templates: loads templates
app/Http/Controllers/IdCardController.php - ID card controller → ID card pages: renders pages
app/Http/Controllers/IdCardController.php - ID card controller → Public file storage: stores uploads
app/Http/Controllers/IdCardController.php - ID card pages → TEC-IT barcode API: generates barcodes
- Web routes → Template controller: routes to
routes/web.php - Template controller → Department templates: reads and saves
app/Http/Controllers/DepartmentTemplateController.php - Template controller → Template page: renders page
app/Http/Controllers/DepartmentTemplateController.php - Fortify configuration → User registration: registers action
app/Providers/FortifyServiceProvider.php - User registration → User account: creates account
app/Actions/Fortify/CreateNewUser.php - Web routes → Settings routes: includes routes
routes/web.php - Settings routes → Profile settings: routes to
routes/settings.php - Settings routes → Security settings: routes to
routes/settings.php - Profile settings → Profile page: renders page
app/Http/Controllers/Settings/ProfileController.php - Security settings → Security page: renders page
app/Http/Controllers/Settings/SecurityController.php - Profile settings → User account: updates account
app/Http/Controllers/Settings/ProfileController.php - Security settings → User account: updates password
app/Http/Controllers/Settings/SecurityController.php - Application bootstrap → Inertia middleware: registers middleware
bootstrap/app.php - Application bootstrap → Appearance middleware: registers middleware
bootstrap/app.php