How joseluisbg/empresacontigo works
Empresa Contigo is a Laravel web application for company and employee administration, workplace-health surveys, clinical information, notices, and mailboxes. Users and administrators enter through web routes, which dispatch to controllers or Livewire components; survey controllers calculate and persist results, while employee and notice features support company operations. Authentication and role/company middleware gate many routes. The graph reflects route declarations and sampled controller/component references; several listed subsystems were not sampled, so their internal behavior and storage links are left unspecified.
Main entry points: web.php Web routes · notificaciones.php Notices · notificacionesPolicy.php Notice policy · FortifyServiceProvider.php Authentication setup
Components 27
Web entry and access
- Web routes
routes/web.php - Route provider
app/Providers/RouteServiceProvider.php - HTTP middleware
app/Http/Kernel.php
Health surveys
- Survey one
app/Http/Controllers/CuestionarioController.php - Survey two
app/Http/Controllers/CuestionariodosController.php - Survey information
app/Http/Livewire/InfoEncuestas.php - Survey results
app/Models/results.php
Company operations
- Employee records
app/Http/Controllers/EmpleadosController.php - Employee list
app/Http/Livewire/ListaEmpleados.php - Employee model
app/Models/Empleado.php - Clinical information
app/Http/Livewire/InformacionClinica.php - Clinical model
app/Models/InfoClinica.php - Notice management
app/Http/Livewire/Avisos.php - Notice detail
app/Http/Livewire/EspecificAvisos.php - Save notice
app/Http/Livewire/GuardaAvisos.php - Notices
app/Models/notificaciones.php - Mailbox list
app/Http/Livewire/ListaMailbox.php - Mailbox registration
app/Http/Livewire/RegistraMailbox.php - Company registration
app/Http/Livewire/RegistrerCompanies.php - Company reports
app/Http/Controllers/ReporteController.php
Identity and authorization
- Authentication setup
app/Providers/FortifyServiceProvider.php - Create account
app/Actions/Fortify/CreateNewUser.php - Update profile
app/Actions/Fortify/UpdateUserProfileInformation.php - User model
app/Models/User.php - Notice policy
app/Policies/notificacionesPolicy.php - Authorization setup
app/Providers/AuthServiceProvider.php
Other components
- User or admin
Connections 30
- Route provider → Web routes: loads routes
app/Providers/RouteServiceProvider.php - Web routes → HTTP middleware: applies middleware
routes/web.php - Web routes → Survey one: routes to
routes/web.php - Web routes → Survey two: routes to
routes/web.php - Web routes → Survey information: routes to
routes/web.php - Web routes → Employee records: routes to
routes/web.php - Web routes → Employee list: routes to
routes/web.php - Web routes → Clinical information: routes to
routes/web.php - Web routes → Notice management: routes to
routes/web.php - Web routes → Notice detail: routes to
routes/web.php - Web routes → Save notice: routes to
routes/web.php - Web routes → Mailbox list: routes to
routes/web.php - Web routes → Mailbox registration: routes to
routes/web.php - Web routes → Company registration: routes to
routes/web.php - Web routes → Company reports: routes to
routes/web.php - User or admin → Web routes: requests pages
- Survey one → Survey results: reads and writes
app/Http/Controllers/CuestionarioController.php - Survey two → Survey results: reads and writes
app/Http/Controllers/CuestionariodosController.php - Employee records → Employee model: creates employee
app/Http/Controllers/EmpleadosController.php - Employee list → Employee model: queries employees
app/Http/Livewire/ListaEmpleados.php - Clinical information → Clinical model: uses clinical data
app/Http/Livewire/InformacionClinica.php - Notice management → Notices: uses notices
app/Http/Livewire/Avisos.php - Notice detail → Notices: uses notices
app/Http/Livewire/EspecificAvisos.php - Save notice → Notices: uses notices
app/Http/Livewire/GuardaAvisos.php - Authentication setup → Create account: registers handler
app/Providers/FortifyServiceProvider.php - Authentication setup → Update profile: registers handler
app/Providers/FortifyServiceProvider.php - Create account → User model: creates user
app/Actions/Fortify/CreateNewUser.php - Authorization setup → Notice policy: registers policy
app/Providers/AuthServiceProvider.php - Notice policy → User model: checks user
app/Policies/notificacionesPolicy.php - Notice policy → Notices: checks notice
app/Policies/notificacionesPolicy.php