How guilhermmedev/sistema-biblioteca works
Lybris is a Laravel library-management web app for students and librarians. The main workflow is book discovery and catalog maintenance, followed by a student reservation, librarian approval into a loan, and return processing; scheduled commands also handle fines, blocking, and expired reservations. The graph focuses on those documented product capabilities and the sampled controller/model calls. The README documents Google Books lookup, but the shown code does not establish its backend or frontend wiring, so that integration is included without an asserted call edge.
Main entry points: web.php Web routes · BookController.php Catalog browsing · ReservationController.php Reservation handling · Loan.php Loan records
Components 22
Web experience
- Web routes
routes/web.php - Catalog browsing
app/Http/Controllers/BookController.php - Catalog views
resources/views/home.blade.php - Catalog admin views
resources/views/admin/create.blade.php - Laravel HTTP entry
public/index.php
Library operations
- Reservation handling
app/Http/Controllers/ReservationController.php - Loan handling
app/Http/Controllers/LoansController.php - Loan and request views
resources/views/admin/requests.blade.php
User access
- Registration
app/Http/Controllers/Auth/RegisterController.php - Login
app/Http/Controllers/Auth/LoginController.php - Email verification
app/Http/Controllers/Auth/VerificationController.php - Admin access
app/Http/Middleware/AdminMiddleWare.php
Library records
- Book records
app/Models/Book.php - Reservation records
app/Models/Reservation.php - Loan records
app/Models/Loan.php - User records
app/Models/User.php
Scheduled maintenance
- Fine processing
app/Console/Commands/ApplyFine.php - User blocking
app/Console/Commands/BlockUsers.php - Reservation expiry
app/Console/Commands/DeleteReserveExpired.php - Command schedule
routes/console.php
Other components
- Student or librarian
- Google Books API
Connections 27
- Student or librarian → Laravel HTTP entry: uses app
- Laravel HTTP entry → Web routes: dispatches routes
- Web routes → Catalog browsing: routes requests
routes/web.php - Web routes → Reservation handling: routes requests
routes/web.php - Web routes → Loan handling: routes requests
routes/web.php - Catalog browsing → Book records: searches records
app/Http/Controllers/BookController.php - Catalog browsing → Reservation records: checks reservations
app/Http/Controllers/BookController.php - Catalog browsing → Loan records: checks loans
app/Http/Controllers/BookController.php - Catalog browsing → Catalog views: renders catalog
app/Http/Controllers/BookController.php - Catalog browsing → Catalog admin views: renders admin form
app/Http/Controllers/BookController.php - Reservation handling → Book records: updates availability
app/Http/Controllers/ReservationController.php - Reservation handling → Reservation records: creates requests
app/Http/Controllers/ReservationController.php - Reservation handling → Loan records: creates approved loan
app/Http/Controllers/ReservationController.php - Reservation handling → User records: uses user identity
app/Http/Controllers/ReservationController.php - Reservation handling → Loan and request views: renders requests
app/Http/Controllers/ReservationController.php - Loan handling → Loan records: updates loan status
app/Http/Controllers/LoansController.php - Registration → User records: creates account
app/Http/Controllers/Auth/RegisterController.php - Web routes → Registration: routes requests
- Web routes → Login: routes requests
- Web routes → Email verification: routes requests
- Admin access → Web routes: guards admin routes
- Command schedule → Fine processing: registers command
routes/console.php - Command schedule → User blocking: registers command
routes/console.php - Command schedule → Reservation expiry: registers command
routes/console.php - Fine processing → Loan records: processes fines
app/Console/Commands/ApplyFine.php - Reservation expiry → Reservation records: removes expired
app/Console/Commands/DeleteReserveExpired.php - Google Books API → Catalog admin views: documents lookup capability