smithery/jaguarjack

routes

Generate route configuration for CatchAdmin module.

Installation

$ npx skills add smithery/jaguarjack --skill routes

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/jaguarjack.

npx skills add smithery/jaguarjack

Browse all from smithery/jaguarjack

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,364 B
  • docs SUMMARY.md 65 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Step 6: Generate Routes

创建路由配置。

File Location

modules/{Module}/routes/route.php

Template

<?php

use Illuminate\Support\Facades\Route;
use Modules\{Module}\Http\Controllers\{Model}Controller;

// CRUD routes
Route::apiResource('{resources}', {Model}Controller::class);

// Toggle status
Route::put('{resources}/enable/{id}', [{Model}Controller::class, 'enable']);

// Export
Route::get('{resource}/export', [{Model}Controller::class, 'export']);

// Import
Route::post('{resource}/import', [{Model}Controller::class, 'import']);

// Restore from trash
Route::put('{resources}/restore/{id}', [{Model}Controller::class, 'restore']);

Route Naming

Method URI Action
GET /{resources} index
POST /{resources} store
GET /{resources}/{id} show
PUT /{resources}/{id} update
DELETE /{resources}/{id} destroy
PUT /{resources}/enable/{id} enable
GET /{resource}/export export
POST /{resource}/import import

Permission Middleware

路由自动被 PermissionGate 中间件保护。

跳过权限检查:

Route::get('public/data', [Controller::class, 'data'])
    ->withoutMiddleware([PermissionGate::class]);