Fix notification events callers
This commit is contained in:
@@ -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'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user