Create CRUD endpoints over a custom database table via better-route's Resource API — Resource::make('audit')->sourceTable( 'wp_myapp_events…
“数据、分析与调研”领域的一个 Skill。已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
完整描述
Create CRUD endpoints over a custom database table via better-route's Resource API — Resource::make('audit')->sourceTable( 'wp_myapp_events')->fields([...])->policy(...)->register($router). Critical v0.3.0 rule — custom-table resources are deny-by-default for ALL actions including list and get (CPT sources still allow reads, but raw tables don't have WP's visibility model). Without an explicit ->policy() declaration the resource returns 403 on every call. fields() is also REQUIRED — throws InvalidArgumentException if empty (CPT sources have implicit fields from post columns; tables do not). Other Resource builder methods carry over from CPT — filters, sort, writeSchema, fieldPolicy, deleteMode, defaultPerPage. Use when generating CRUD over a custom DB table. Triggers on Resource::make + ->sourceTable, "REST CRUD over custom table" with better-route, "$wpdb->prefix . 'myapp_*'".
Skill 是加载到智能体(如 Claude Code 或 Codex)里的一组指令。就像在手机上安装应用:装一次,智能体就知道怎么做这件事。
它有什么用?
用于“数据、分析与调研”相关工作。发布者的介绍:Create CRUD endpoints over a custom database table via better-route's Resource API — Resource::make('audit')->sourceTable( 'wp_myapp_events')->fields([...])->p…
示例请求
“研究这个主题并做个总结。”
智能体
已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
值得信任吗?
27 个 GitHub 星标 · MIT。安装前请先查看来源。
使用情况
最近 30 天,网站和智能体上。
0个书架收藏
0次浏览
0次命令复制
0次网站下载
0次通过应用安装
0次由智能体自行安装
0位活跃用户
实测评分需要 ANG 应用中至少 20 位用户和 50 个任务;目前有 0 位用户、0 个任务。在此之前,强度分根据条目数据估算。