How goravel/framework works
Goravel is a Laravel-inspired Go web application framework. Its principal web workflow accepts an HTTP request, routes it through middleware and validation to application handling, then returns a response; surrounding modules provide persistence, identity, and other application services. The graph also preserves major README capabilities as independent framework subsystems. Wiring is based on the documented product role and available tree; sampled source specifically confirms validation execution and session-driver behavior, not every subsystem’s internal calls.
Main entry points: runners.go HTTP server · middleware HTTP middleware · route.go Routing · validation.go Request validation
Components 25
Application runtime
- Application bootstrap
foundation/application.go - Configuration
config/application.go
Web handling
- HTTP server
http/runners.go - Routing
route/route.go - HTTP middleware
http/middleware - Request validation
validation/validation.go - HTTP response
http/context.go
Data and state
- Database and ORM
database/orm/orm.go - Schema and migrations
database/schema/schema.go - Cache
cache/driver.go - Sessions
session/manager.go - File storage
filesystem/application.go
Application services
- Authentication
auth/auth.go - Authorization gates
auth/access/gate.go - Background queue
queue/worker.go - Task scheduling
schedule/application.go - Events
event/application.go - Mail delivery
mail/mail.go - Notifications
notification/notification.go - gRPC
grpc/application.go
Operations and insight
- Artisan CLI
console/application.go - Telemetry
telemetry/application.go - Logging
log/application.go - Process pipelines
process/pipeline.go
Other components
- Application user
Connections 15
- Application user → Artisan CLI: runs commands
- Application user → HTTP server: sends request
- Application bootstrap → Configuration: loads settings
- HTTP server → Routing: dispatches request
- Routing → HTTP middleware: applies middleware
- HTTP middleware → Request validation: validates input
- HTTP middleware → Authentication: checks identity
- Authentication → Authorization gates: checks access
- Request validation → HTTP response: returns result
- HTTP server → HTTP response: sends response
- Database and ORM → Schema and migrations: uses schema
- Sessions → File storage: stores sessions
- Task scheduling → Background queue: dispatches jobs
- Events → Background queue: queues listeners
- Notifications → Mail delivery: delivers mail