How berrouane-wafa/bib-app works
This is a Laravel library-circulation web application: users can authenticate, browse and manage books, authors, publishers and clients, and record loans. The clearest sampled workflow routes requests to controllers, which validate and operate on Eloquent models; loan creation also reduces book stock. The graph preserves the main domain models and visible screens. Source evidence is incomplete, so links for unsampled controller behavior and persistence infrastructure are omitted rather than inferred.
Main entry points: web.php Web routes · LivreController.php Book management · EmpruntController.php Loan management · Livre.php Book
Components 17
Web entry
- Web routes
routes/web.php
Authentication
- Authentication
app/Http/Controllers/AuthController.php - User account
app/Models/User.php - Login screen
resources/views/auth/login.blade.php
Library catalog
- Author management
app/Http/Controllers/AuteurController.php - Client management
app/Http/Controllers/ClientController.php - Publisher management
app/Http/Controllers/EditionController.php - Book management
app/Http/Controllers/LivreController.php - Author
app/Models/Auteur.php - Client
app/Models/Client.php - Publisher
app/Models/Edition.php - Book
app/Models/Livre.php - Catalog screens
resources/views
Loan circulation
- Loan management
app/Http/Controllers/EmpruntController.php - Loan
app/Models/Emprunt.php - Loan screens
resources/views/loans
Other components
- Library user
Connections 20
- Library user → Web routes: sends requests
- Web routes → Authentication: routes to
routes/web.php - Web routes → Author management: routes to
routes/web.php - Web routes → Client management: routes to
routes/web.php - Web routes → Publisher management: routes to
routes/web.php - Web routes → Book management: routes to
routes/web.php - Web routes → Loan management: routes to
routes/web.php - Authentication → Login screen: renders
app/Http/Controllers/AuthController.php - Book management → Author: loads
app/Http/Controllers/LivreController.php - Book management → Publisher: loads
app/Http/Controllers/LivreController.php - Book management → Book: queries and creates
app/Http/Controllers/LivreController.php - Book management → Catalog screens: renders
app/Http/Controllers/LivreController.php - Author → Book: belongs to
app/Models/Auteur.php - Publisher → Book: belongs to
app/Models/Edition.php - Loan management → Loan: creates and loads
app/Http/Controllers/EmpruntController.php - Loan management → Client: loads clients
app/Http/Controllers/EmpruntController.php - Loan management → Book: checks and decrements stock
app/Http/Controllers/EmpruntController.php - Loan management → Loan screens: renders
app/Http/Controllers/EmpruntController.php - Loan → Book: belongs to
app/Models/Emprunt.php - Loan → Client: belongs to
app/Models/Emprunt.php