listeners

Explain booking event flows and listener cache updates in the Soleil Hostel backend.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/taucao-ruby/soleil-hostel --skill listeners
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: listeners
Source: https://github.com/taucao-ruby/soleil-hostel/tree/main/.claude/skills/generated/listeners
Command: npx skills add https://github.com/taucao-ruby/soleil-hostel --skill listeners

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Listeners skill helps developers understand how booking-related events propagate through the Soleil Hostel backend, enabling safer changes, faster onboarding, and reliable notifications.

Core Features & Use Cases

  • Document the purpose and interactions of key listener classes (InvalidateCacheOnBookingChange, SendBookingUpdateNotification, SendBookingCancellation, BookingCreated, BookingUpdated) and related events.
  • Explain the event flow from BookingCreated/BookingUpdated/BookingCancelled to corresponding actions like cache invalidation and notification sending.
  • Provide quick references to entry points and symbol mappings to aid debugging and code exploration.

Quick Start

Open the backend/app/Listeners directory to review the handle methods and event wiring.

Frequently Asked Questions about listeners

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do Laravel booking events trigger listeners and cache updates?

Laravel booking events trigger listeners by dispatching BookingCreated, BookingUpdated, or BookingCancelled, which execute handle methods in InvalidateCacheOnBookingChange and SendBookingUpdateNotification to clear cache and send notifications.

What is the event flow for booking created and updated events in a Laravel backend?

The event flow for booking updates routes from BookingCreated and BookingUpdated events to targeted listener classes, executing cache invalidation and dispatching notification actions to ensure backend state consistency.

How do I review Laravel listener handle methods for booking notifications?

To review Laravel listener handle methods for booking notifications, open the backend/app/Listeners directory to examine event wiring and symbol mappings for SendBookingUpdateNotification and related classes.

Can I use Laravel listeners to invalidate cache on booking cancellations?

Yes, you can use Laravel listeners to invalidate cache on booking cancellations by wiring the BookingCancelled event to the InvalidateCacheOnBookingChange listener within the backend application structure.

Does the Soleil Hostel backend use listeners for both cache invalidation and notifications?

The Soleil Hostel backend uses dedicated listeners for both cache invalidation and notifications, mapping booking state changes to InvalidateCacheOnBookingChange and SendBookingCancellation actions to support auditing and onboarding.

Why are my Laravel booking events not triggering cache invalidation listeners?

Booking events fail to trigger cache invalidation listeners when event-listener wiring is missing or handle methods lack proper symbol mappings, requiring a review of the backend/app/Listeners directory to verify event flow configuration.