Fix notification events callers

This commit is contained in:
Nabeel Shahzad
2018-03-09 08:52:55 -06:00
parent aac355b077
commit 83f0f1bfe3
2 changed files with 4 additions and 4 deletions

View File

@@ -18,12 +18,12 @@ class NotificationEvents
{ {
$events->listen( $events->listen(
\App\Events\UserRegistered::class, \App\Events\UserRegistered::class,
'App\Listeners\NotificationEventListener@onUserRegister' 'App\Listeners\NotificationEvents@onUserRegister'
); );
$events->listen( $events->listen(
\App\Events\UserStateChanged::class, \App\Events\UserStateChanged::class,
'App\Listeners\NotificationEventListener@onUserStateChange' 'App\Listeners\NotificationEvents@onUserStateChange'
); );
} }

View File

@@ -1,5 +1,4 @@
<?php <?php
namespace App\Models\Traits; namespace App\Models\Traits;
use Hashids\Hashids; use Hashids\Hashids;
@@ -10,7 +9,7 @@ trait HashIdTrait
* @return string * @return string
* @throws \Hashids\HashidsException * @throws \Hashids\HashidsException
*/ */
protected static function createNewHashId() protected static function createNewHashId(): string
{ {
$hashids = new Hashids('', 12); $hashids = new Hashids('', 12);
$mt = str_replace('.', '', microtime(true)); $mt = str_replace('.', '', microtime(true));
@@ -19,6 +18,7 @@ trait HashIdTrait
/** /**
* Register callbacks * Register callbacks
* @throws \Hashids\HashidsException
*/ */
protected static function bootHashIdTrait() protected static function bootHashIdTrait()
{ {