Training & Development

Laravel Rust Best Practices

Best practices for apps built with Laravel for Rust (the laravel-rust crate, 0.1.x). Use when writing or reviewing Laravel for Rust code — handlers, input structs, models and queries, migrations, transactions, jobs, events, the scheduler, the HTTP client, cache, config and deployment. Each rule shows the common version (usually code that compiles but behaves wrongly: a panic into a 500, data cleared by a PATCH, another user's record changed, a job lost on deploy, an HTTP 500 handled as success, a time test that cannot pass; a few are configuration or deploy mistakes) and the version to write. Every Rust example compiles against laravel-rust 0.1.4, and the main claims were tested on that version. Complements the seven skills a new app ships in .agents/skills/. For porting from Laravel PHP use laravel-php-to-rust; for a security audit use laravel-rust-audit; for the Rust language itself use rust-for-laravel-developers.

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
1b494bda3b329988007cf1c2376d2ced488e816290655a56dc06b0968389da76