How lmartinsbeleza/sistema-de-gerenciamento-de-chaves works
This Laravel application manages room keys: users register or sign in, browse key availability, schedule a pickup, collect a key, and record its return. Separate administration workflows manage users and key/room records; the models represent keys, rooms, statuses, and custody history. The excerpts show the key-lifecycle controller and core model relationships, while route declarations are only named in the source index. Consequently, unverified view, authentication, and persistence links are omitted rather than inferred.
Main entry points: web.php Web Routes · Chave.php Key Model · ChaveController.php Key Catalog · ControleController.php Key Custody
Components 19
Web and Auth
- Web Routes
routes/web.php - Route Provider
app/Providers/RouteServiceProvider.php - Login
app/Http/Controllers/Auth/LoginController.php - Registration
app/Http/Controllers/Auth/RegisterController.php - Email Verification
app/Http/Controllers/Auth/VerificationController.php
Key Operations
- Key Catalog
app/Http/Controllers/ChaveController.php - Key Screens
resources/views/chave - Key Custody
app/Http/Controllers/ControleController.php - Pickup and Return Screens
resources/views/controle
Administration
- User Administration
app/Http/Controllers/UserController.php - User Screens
resources/views/user - Home Dashboard
app/Http/Controllers/HomeController.php - Dashboard Screen
resources/views/dashboard.blade.php
Domain Data
- Key Model
app/Models/Chave.php - Custody Model
app/Models/Controle.php - Room Model
app/Models/Sala.php - Status Model
app/Models/Status.php - User Model
app/Models/User.php
Other components
- User
Connections 18
- User → Web Routes: sends requests
- Route Provider → Web Routes: loads routes
app/Providers/RouteServiceProvider.php - Web Routes → Key Catalog: routes to
routes/web.php - Web Routes → Key Custody: routes to
routes/web.php - Web Routes → User Administration: routes to
routes/web.php - Web Routes → Home Dashboard: routes to
routes/web.php - Key Catalog → Key Model: queries and saves
app/Http/Controllers/ChaveController.php - Key Catalog → Room Model: queries and saves
app/Http/Controllers/ChaveController.php - Key Catalog → Key Screens: renders
app/Http/Controllers/ChaveController.php - Key Custody → Custody Model: queries and updates
app/Http/Controllers/ControleController.php - Key Custody → Key Model: queries and updates
app/Http/Controllers/ControleController.php - Key Custody → Pickup and Return Screens: renders
app/Http/Controllers/ControleController.php - User Administration → User Model: queries and saves
app/Http/Controllers/UserController.php - User Administration → User Screens: renders
app/Http/Controllers/UserController.php - Key Model → Room Model: references
app/Models/Chave.php - Key Model → Status Model: references
app/Models/Chave.php - Key Model → Custody Model: references
app/Models/Chave.php - Custody Model → User Model: references
app/Models/Controle.php