scaffold-listener

Laravel Listener Pattern Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "scaffold-listener" with this command: npx skills add iurygdeoliveira/labsis-kit/iurygdeoliveira-labsis-kit-scaffold-listener

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 { // ... }

  1. Dependency Injection
  • Inject dependencies in __construct .

  • Access event data in handle(EventName $event) .

  1. Verification
  • Ensure the mapping exists. Laravel 11/12 detects it automatically if the listener type-hints the event.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

scaffold-filament-resource

No summary provided by upstream source.

Repository SourceNeeds Review
General

scaffold-filament-page

No summary provided by upstream source.

Repository SourceNeeds Review
General

scaffold-controller

No summary provided by upstream source.

Repository SourceNeeds Review
General

optimize-performance

No summary provided by upstream source.

Repository SourceNeeds Review