Promotes use of interfaces and dependency injection in Laravel to decouple code, improve testability, and allow swapping implementations.
Ships in noartem-laravel-vue-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Define narrow interfaces and inject them where needed. Bind concrete implementations in a service provider.
interface Slugger { public function slug(string $s): string; }
final class AsciiSlugger implements Slugger {
public function slug(string $s): string { /* ... */ }
}
$this->app->bind(Slugger::class, AsciiSlugger::class);
Benefits: easier testing (mock interfaces), clearer contracts, swap implementations without touching consumers.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
laravel, dependency-injection, interfaces, decoupling, service-provider
/noartem-laravel-vue-skills:laravel-interfaces-and-difrom noartem-laravel-vue-skills
noartem-laravel-vue-skills@cascade-code-languages-misc-2 is listed by joshuarweaver/cascade-code-languages-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-2 --plugin noartem-laravel-vue-skills31 skills in this plugin
/baseline-uiEnforces an opinionated UI baseline to prevent AI-generated interface slop./complexity-guardrailsKeep cyclomatic complexity low; flatten control flow, extract helpers, and prefer table-driven/strategy patterns over large switches/laravel-apiBuild production-grade Laravel REST APIs using opinionated architecture patterns with Laravel best practices. Use when building, scaffoling, or reviewing Laravel APIs with specifications for stateless design, versioned endpoints, invokable controllers, Form Request DTOs, Action classes, JWT authentication, and PSR-12 code quality standards. Triggers on "build a Laravel API", "create Laravel endpoints", "add API authentication", "review Laravel API code", "refactor Laravel API", or "improve Laravel code quality"./laravel-api-resources-and-paginationUse API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly/laravel-config-env-storagePortable storage configuration across S3/R2/MinIO with optional CDN—env toggles, path-style endpoints, and URL generation/laravel-constants-and-configurationReplace hardcoded values with constants, enums, and configuration for maintainability; use PHP 8.1+ enums and config filesOther plugins' skills for the same job