Software Development

Laravel Go Best Practices

Best practices for apps built with Laravel for Go (the go.laravel.com module, 0.1.x). Use when writing or reviewing Laravel for Go code: handlers, input structs, models and queries, transactions, policies, Inertia props, middleware, jobs, listeners, workflows, the scheduler, the HTTP client, services, configuration and deployment. Each rule shows the common version (usually code that compiles but behaves wrongly: columns zeroed by model.Save, another user's record served or changed, a job pushed for a rolled-back order, a panic into a 500, a goroutine that dies with the request, a job lost or run twice, a secret sent to the browser; a few are configuration or deploy mistakes) and the version to write. Every Go example compiles against go.laravel.com v0.1.0, and the main claims were tested on that version. Complements the seven skills a new app ships in .agents/skills/. Not for Laravel on PHP (use laravel-best-practices) or Laravel for Rust (use laravel-rust-best-practices).

Publisher / source
AsyrafHussin/agent-skills (found on skills.sh)
Upstream record
AsyrafHussin/agent-skills
Version
Version 1
Published
Publication review
Approved for publication
Content fingerprint
d827bc791ccedeb09d50c3cd8415b370afe4762c5291389e8f195517e6440458