Property | Type | Description | |
---|---|---|---|
$defaultWildcard | string | Default namespace for notifications events. |
Property | Type | Description | |
---|---|---|---|
$event | Illuminate\Events\Dispatcher | ||
$sender | string | Default sender method. |
Method | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Events\Dispatcher $event ) | ||
boot ( array $listeners ) | Boot The listeners. | |
delegate ( Fenos\Notifynder\Notifynder $notifynder, array $data, array $events ) : mixed | Delegate events to categories. | |
fire ( Fenos\Notifynder\Notifynder $notifynder, string $eventName, string $categoryName = null, mixed | null $values = [] ) : mixed | null | It fire the event associated to the passed key, trigger the listener method bound with. | |
hasNotificationToSend ( $notificationsResult ) : boolean | Check if the fired method has some notifications to send. | |
sendWith ( $customMethod ) | Tell the dispatcher to send the notification with a custom (extended method). |
Method | Description | |
---|---|---|
generateEventName ( $eventName ) : string | Get Event name. |
public __construct ( Illuminate\Contracts\Events\Dispatcher $event ) | ||
$event | Illuminate\Contracts\Events\Dispatcher |
protected generateEventName ( $eventName ) : string | ||
$eventName | ||
return | string |
public hasNotificationToSend ( $notificationsResult ) : boolean | ||
$notificationsResult | ||
return | boolean |
public sendWith ( $customMethod ) | ||
$customMethod |
public static string $defaultWildcard | ||
return | string |
protected Dispatcher,Illuminate\Events $event | ||
return | Illuminate\Events\Dispatcher |