skills/php/laravel/SKILL.md
Laravel 路由、Eloquent、Blade、Artisan 与部署。在开发或维护 Laravel 项目时使用。
npx skillsauth add aa24615/cursor-skills laravelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
以下规范与框架版本无关,适用于 Laravel 项目日常开发与代码审查。能愿动词:必须/禁止表示强制,应/宜表示建议。
.env,代码中通过 config() 读取;禁止在代码中硬编码密钥、数据库连接等。vendor/;开发专用包放入 require-dev。route() 生成 URL)并合理分组(前缀、中间件、域名等)。validate() 或 if 判断。$hidden),禁止在 JSON 或数组序列化中输出。.env 与 config/ 管理;代码中只读取 config(),不直接读 env()(除 config 文件内)。data、message、code)与合适的 HTTP 状态码。app/Helpers),避免在控制器或模型中重复书写。详细条目与示例见 LearnKu《Laravel 项目开发规范》(文档按版本组织,规范原则通用)。
development
TypeScript 语言基础:类型、泛型、配置与工程约定。在编写或审查 TypeScript 代码、配置 tsconfig 时使用。
development
Node.js 运行时、模块、异步、常用 API 与调试。在编写 Node.js 服务或脚本时使用。
tools
Express 路由、中间件、错误处理与常用生态。在开发或维护 Express 应用时使用。
tools
UIKit 视图、视图控制器、Auto Layout 与生命周期。在开发 UIKit 界面时使用。