Skip to content

Instantly share code, notes, and snippets.

View zedix's full-sized avatar

LX zedix

  • Apatura
  • Paris
View GitHub Profile
<?php
namespace SomeApp\Notifications\Payment;
// Example 1
// Would be nice to be able to configure this notification in EventServiceProvider:
// 'SomeApp\Events\Payment\PayInRefundFailed' => [
// 'SomeApp\Notifications\Payment\PayInRefundFailed@handle'
// ],
//
// It would be up to the event to carry info / recipient for the notification...
<?php
// ...
class EventServiceProvider extends ServiceProvider
{
/**
* The event handler mappings for the application.
*
* @var array
*/