スキル一覧に戻る
MuhammedAlkhudiry

laravel

by MuhammedAlkhudiry

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: laravel description: Laravel/PHP coding standards. Use when working on Laravel backend to ensure proper architecture, Eloquent usage, and PHP type safety.

Laravel / PHP

Critical rules for Laravel and PHP development.


PHP & Types

  • Follow PSR-12 or project standard
  • Always use param + return types; avoid mixed/untyped
  • Typed properties; no stdClass or loose arrays
  • Small, single-responsibility methods; composition over inheritance

DTOs & Enums

  • Use DTOs for data crossing boundaries; typed, immutable, no logic
  • Named constructors (fromRequest, fromModel) only when needed
  • PHP backed enums for constrained values; no magic strings/ints

Architecture

  • Controllers thin; domain logic in models/services/actions
  • DI + container; reuse events/listeners/jobs if project uses them
  • Route model binding; resourceful routes when natural
  • Form Requests or $request->validate() consistently; policies for auth

Eloquent

  • Use relationships, scopes, casts; avoid raw SQL unless necessary
  • Prevent N+1 with with() / loadMissing()

Views & API

  • No DB queries in views; prepare data in controllers
  • APIs: proper JSON; use API Resources if project does

Safety

  • No DB schema or env changes unless requested
  • Use config() for tunables; no hardcoded secrets

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です