> */ protected $listen = [ // Order events OrderCreated::class => [ NotifySlackOnOrderCreated::class, GenerateQrCodeOnOrderCreated::class, ], // Trello card move events OrderMovedToPrep::class => [ NotifySlackOnOrderMovedToPrep::class, ], OrderMovedToAwaitingApproval::class => [ NotifySlackOnOrderMovedToAwaitingApproval::class, ], OrderMovedToReadyForPrint::class => [ NotifySlackOnOrderMovedToReadyForPrint::class, ], OrderMovedToPrinting::class => [ NotifySlackOnOrderMovedToPrinting::class, ], // Packing events OrderPacked::class => [ NotifySlackOnOrderPacked::class, ], // Inspection events InspectionPassed::class => [ MoveCardToPackingOnInspectionPassed::class, NotifySlackOnInspectionPassed::class, ], InspectionFailed::class => [ NotifySlackOnInspectionFailed::class, ], OrderMovedToInspection::class => [ NotifySlackOnCardMovedToInspection::class, ], // Ready to Ship intent (from Trello webhook) ReadyToShipIntent::class => [ CreateShipmentOnReadyToShip::class, ], // Shipment events ShipmentCreated::class => [ NotifySlackOnShipmentCreated::class, ], ShipmentCreationFailed::class => [ NotifySlackOnShipmentCreationFailed::class, ], // Courier events ParcelCollected::class => [ NotifySlackOnParcelCollected::class, ], ParcelInTransit::class => [ // TODO: Add listener ], ParcelDelivered::class => [ NotifySlackOnParcelDelivered::class, ], ParcelFailedDelivery::class => [ NotifySlackOnParcelFailedDelivery::class, ], // Custom order events (listeners TODO) DepositPaid::class => [ // TODO: NotifySlackOnDepositPaid ], ProofUploaded::class => [ // TODO: NotifySlackOnProofUploaded ], ProofApproved::class => [ // TODO: NotifySlackOnProofApproved ], ProofRevisionRequested::class => [ // TODO: NotifySlackOnProofRevisionRequested ], BalancePaid::class => [ // TODO: NotifySlackOnBalancePaid ], Registered::class => [ SendEmailVerificationNotification::class, ], ]; /** * Disable automatic event discovery to avoid permission issues */ public function shouldDiscoverEvents(): bool { return false; } /** * Register any events for your application. */ public function boot(): void { // } }