routing-and-controllers
仓库创建 2026年7月4日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由
适合维护 Wayfinder/Laravel 路由与控制器的开发者。
这个 Skill 做什么
指导创建控制器、注册路由并映射到 Wayfinder TS 操作。
指导如何创建控制器、在路由文件里注册路径,并把这些路由映射到 Wayfinder 的 TypeScript action 上,适合新增/修改控制器或排查路由缺失时参考。常见场景包括 RESTful 资源路由和找不到控制器动作的调试。特点是把后端路由与 Wayfinder TS 的实现步骤串起来,帮助定位和实现具体动作。
▸ 展开 SKILL.md 英文原文
Creating controllers, registering routes, and understanding how routes map to Wayfinder TypeScript actions.
0
Stars
0
Forks
23
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ceilidhboy/skills/master/skills/routing-and-controllers/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ceilidhboy/skills/master/skills/routing-and-controllers/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Routing and Controllers ## When to Activate This Skill Activate this skill whenever: - Creating new controllers or modifying existing ones - Registering routes in `routes/web.php` or other route files - Working with RESTful resource routing - Understanding how routes map to Wayfinder TypeScript actions - Troubleshooting missing controller actions or route registration issues ## The Complete Workflow When creating a new controller with a route: 1. **Create the controller** using Artisan: ```bash php artisan make:controller JobController --no-interaction ``` 2. **Implement the controller action** with proper type hints and return types: ```php final class JobController
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有