Imported from pablojnd/aurion (
.opencode/skills/laravel-project-api/SKILL.md). Install upstream withnpx skills add pablojnd/aurion --skill laravel-project-api. Copyright stays with the author.
Project API Contract
- The project runs Laravel 13 on PHP 8.4.
- API routes live in
routes/api.phpand are automatically prefixed with/api. - Versioned application routes use
/api/v1. - Use Laravel Sanctum bearer tokens with
auth:sanctum. - File routes require token abilities
files:readorfiles:writeas appropriate. - Use Form Requests for non-trivial validation and never pass
$request->all()to application code. - Keep API responses JSON and rely on the existing JSON exception rendering for
api/*requests. - Use the named
api-filesrate limiter for file API traffic. - Stateless bearer-token API routes are not CSRF-exempt web routes; keep browser/session flows in the
webmiddleware group. If a first-party SPA is introduced, configure Sanctum stateful cookies and CSRF explicitly. - Keep secrets in environment variables read through config files. Never commit
.env, tokens, API keys, or payment credentials. - Install packages only with the local project Composer and keep
vendor/local; do not use global package managers or user configuration.