laravel-patterns
Laravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.
Skill by ViewWay
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/viewway-laravel-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/laravel-patterns
What's inside
- Skill name
laravel-patterns- Description
- Laravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.
- License
- MIT
- Instructions
- 411 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Laravel Development Patterns
Production-grade Laravel architecture patterns for scalable, maintainable applications.
## When to Use
- Building Laravel web applications or APIs
- Structuring controllers, services, and domain logic
- Working with Eloquent models and relationships
- Designing APIs with resources and pagination
- Adding queues, events, caching, and background jobs
## How It Works
- Structure the app around clear boundaries (controllers -> services/actions -> models).
- Use explicit bindings and scoped bindings to keep routing predictable; still enforce authorization for access control.
- Favor typed models, casts, and scopes to keep domain logic consistent.
- Keep IO-heavy work in queues and cache expensive reads.
- Centralize config in `config/*` and keep environments explicit.
## Examples
### Project Structure
Use a conventional Laravel layout with clear layer boundaries (HTTP, services/actions, models).
### Recommended Layout
```
app/
├── Actions/ # Single-purpose use cases
├── Console/
├── Events/
├── Exceptions/
├── Http/
│ ├── Controllers/
│ ├── Middleware/
│ ├── Requests/ # Form request validation
│ └── Resources/ # API resources
├── Jobs/
├── Models/
├── Policies/
├── Providers/
├── Services/ # Coordinating domain services
└── Support/
config/
database/
├── factories/
├── migrations/
└── seeders/
resources/
├── views/
└── lang/
routes/
├── api.php
├── web.php
└── console.php
```
### Controllers -> Services -> Actions
Keep controllers thin. Put orchestration in services and single-purpose logic in actions.
```php
final class CreateOrderAction
{
public function __construct(private OrderRepository $orders) {}
public function handle(CreateOrderData $data): Order
{
return $this->orders->create($data);
}
}
final class OrdersController extends Controller
{
public function __construct(private CreateOrderAction $createOrder) {}
public function store(StoreOrderRequest $request): JsonResponse
{
$order = $this->createOrder->handle($request->toDto());
return response()->json([
'success' => true,
'data' => OrderResource::make($order),
'error' => null,
'meta' => null,
], 201);
}
}
```
### Routing and Controllers
Prefer route-model binding and resource controllers for clarity.
```php
use Illuminate\Support\Facades\Route;
Route::middleware('auth:sanctum')->group(function () {
Route::apiResource('projects', ProjectController::class);
});
```
### Route Model Binding (Scoped)
Use scoped bindings to prevent cross-tenant access.
```php
Route::scopeBindings()->group(function () {
Route::get('/accounts/{account}/projects/{project}', [ProjectController::class, 'show']);
});
```
### Nested Routes and Binding Names
- Keep prefixes and paths consistent to avoid double nesting (e.g., `conversation` vs `conversations`).
- Use a single parameter name that matches the bound model (e.g., `{conversation}` for `Conversation`).
- Prefer scoped bindings when nesting to enforce parent-child relationships.From ViewWay/hermes-by-everythings, MIT.
More from ViewWay/hermes-by-everythings
- 0.519score
frontend-design-ultimate
ViewWay
Create distinctive, production-grade static sites with React, Tailwind CSS, and shadcn/ui — no mockups needed.
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
docker-patterns
ViewWay
Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration.
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
hermes-by-everythings
ViewWay
多平台多语言编码增强套件。整合 ECC + Ralph 最佳能力。 22 Command + 39 Agent + 自动化 Hooks + 学习系统。 支持 TypeScript/Python/Rust/Go/Java/Kotlin 等10种语言。
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
deployment-patterns
ViewWay
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web…
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
laravel-security
ViewWay
Laravel security best practices for authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
code-review
ViewWay
Systematic code review patterns covering security, performance, maintainability, correctness, and testing
SkillCFreshness: C★ 3Claude Code +9 - 0.505score
data-scraper-agent
ViewWay
Build a fully automated AI-powered data collection agent for any public source — job boards, prices, news, GitHub, sports, anything.
SkillCFreshness: C★ 3Claude Code +9 - 0.503score
Diagram
ViewWay
Generate diagrams from descriptions with Mermaid, PlantUML, or ASCII for architecture, flows, sequences, and data models.
SkillCFreshness: C★ 3Claude Code +9 - 0.502score
kotlin-patterns
ViewWay
Idiomatic Kotlin patterns, best practices, and conventions for building robust, efficient, and maintainable Kotlin applications with coroutines, null safety…
SkillCFreshness: C★ 3Claude Code +9 - 0.485score
frontend-slides
ViewWay
Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files.
SkillCFreshness: C★ 3Claude Code +9 - 0.277score
diagram-generator
ViewWay
No description from the publisher yet.
SkillCFreshness: C★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 2, 2026 (6 months ago)
- Last release
- May 2, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ViewWay/hermes-by-everythings
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from ViewWay
- 0.519score
frontend-design-ultimate
ViewWay
Create distinctive, production-grade static sites with React, Tailwind CSS, and shadcn/ui — no mockups needed.
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
laravel-security
ViewWay
Laravel security best practices for authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
deployment-patterns
ViewWay
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web…
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
docker-patterns
ViewWay
Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration.
SkillCFreshness: C★ 3Claude Code +9 - 0.511score
hermes-by-everythings
ViewWay
多平台多语言编码增强套件。整合 ECC + Ralph 最佳能力。 22 Command + 39 Agent + 自动化 Hooks + 学习系统。 支持 TypeScript/Python/Rust/Go/Java/Kotlin 等10种语言。
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
code-review
ViewWay
Systematic code review patterns covering security, performance, maintainability, correctness, and testing
SkillCFreshness: C★ 3Claude Code +9
Cite this page
laravel-patterns skill. Agent Mart. https://agentmart.dev/skills/viewway-laravel-patterns (last updated 2026-10-24)