How laravel/go works
This repository is a Laravel for Go starter application, not the framework itself. Its runtime boots a configured Go app, serves web/API routes, renders an Inertia welcome page with a WebGPU terrain effect, and wires framework facilities for persistence, jobs, scheduling, and events. The sampled code supports the boot, route, and page-rendering links; other README capabilities are represented as documented framework integrations, with evidence limits noted rather than inferred runtime calls.
Main entry points: app.go App configuration · seeders.go Database seeder · web.go Web routes · api.go API routes
Components 26
Application boot
- Runtime entry
main.go - App configuration
bootstrap/app.go - Service container
services/services.go
HTTP and pages
- Web routes
routes/web.go - API routes
routes/api.go - Channel routes
routes/channels.go - Welcome handler
handlers/welcome/welcome.go - Inertia middleware
bootstrap/app.go - Version endpoint
routes/api.go
Persistence
- User model
models/user.go - Schema migrations
database/migrations - Schema dump
database/schema/schema.go - Database seeder
database/seeders/seeders.go - User factory
database/factories/user.go - Database
Async facilities
- Job processing
jobs/jobs.go - Task schedule
commands/schedule.go - Console commands
commands/inspire.go - Event definition
events/example.go - Event listeners
listeners/example.go
Frontend rendering
- Embedded views
resources/resources.go - Inertia frontend
resources/js/app.tsx - Welcome page
resources/js/pages/Welcome.tsx - WebGPU terrain
resources/js/welcome/terrain.ts - Terrain shader
resources/js/welcome/terrain.wgsl
Other components
- Browser user
Connections 26
- Runtime entry → App configuration: starts with
main.go - App configuration → Web routes: registers
bootstrap/app.go - App configuration → API routes: registers
bootstrap/app.go - App configuration → Channel routes: registers
bootstrap/app.go - App configuration → Inertia middleware: configures
bootstrap/app.go - App configuration → Schema migrations: registers
bootstrap/app.go - App configuration → Schema dump: registers
bootstrap/app.go - App configuration → Database seeder: registers
bootstrap/app.go - App configuration → Job processing: registers
bootstrap/app.go - App configuration → Task schedule: registers
bootstrap/app.go - App configuration → Event listeners: registers
bootstrap/app.go - App configuration → Console commands: registers
bootstrap/app.go - App configuration → Service container: builds
bootstrap/app.go - App configuration → Embedded views: sets views
bootstrap/app.go - Browser user → Web routes: requests page
- Web routes → Welcome handler: routes to
- Browser user → API routes: requests version
- API routes → Version endpoint: dispatches
routes/api.go - Database seeder → User factory: creates through
database/seeders/seeders.go - User factory → User model: builds
database/factories/user.go - Database seeder → Database: writes
- Schema migrations → Database: changes schema
- Welcome page → WebGPU terrain: loads
resources/js/pages/Welcome.tsx - WebGPU terrain → Terrain shader: uses
resources/js/welcome/terrain.ts - Inertia frontend → Welcome page: renders
- Welcome handler → Welcome page: supplies page