← スキル一覧に戻る

scaffold-listener
by iurygdeoliveira
Repositorio destinado a fornecer um kit inicial para desenvolvimento de SaaS usando laravel e filament
⭐ 29🍴 12📅 2026年1月20日
SKILL.md
name: scaffold-listener description: Standardizes Events and Listeners for decoupled architecture.
Laravel Listener Pattern Skill
Use this skill when implementing Event-Driven Architecture.
Workflow
- Create Event:
php artisan make:event [EventName] - Create Listener:
php artisan make:listener [ListenerName] --event=[EventName]
Rules
1. Queued Listeners
- If the listener performs IO (Email, API, Notification), it MUST implement
ShouldQueue.
class SendWelcomeEmail implements ShouldQueue
{
// ...
}
2. Dependency Injection
- Inject dependencies in
__construct. - Access event data in
handle(EventName $event).
3. Verification
- Ensure the mapping exists. Laravel 11/12 detects it automatically if the listener type-hints the event.
スコア
総合スコア
80/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
3ヶ月以内に更新
+5
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

