Fix notification events callers
This commit is contained in:
@@ -18,12 +18,12 @@ class NotificationEvents
|
||||
{
|
||||
$events->listen(
|
||||
\App\Events\UserRegistered::class,
|
||||
'App\Listeners\NotificationEventListener@onUserRegister'
|
||||
'App\Listeners\NotificationEvents@onUserRegister'
|
||||
);
|
||||
|
||||
$events->listen(
|
||||
\App\Events\UserStateChanged::class,
|
||||
'App\Listeners\NotificationEventListener@onUserStateChange'
|
||||
'App\Listeners\NotificationEvents@onUserStateChange'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Traits;
|
||||
|
||||
use Hashids\Hashids;
|
||||
@@ -10,7 +9,7 @@ trait HashIdTrait
|
||||
* @return string
|
||||
* @throws \Hashids\HashidsException
|
||||
*/
|
||||
protected static function createNewHashId()
|
||||
protected static function createNewHashId(): string
|
||||
{
|
||||
$hashids = new Hashids('', 12);
|
||||
$mt = str_replace('.', '', microtime(true));
|
||||
@@ -19,6 +18,7 @@ trait HashIdTrait
|
||||
|
||||
/**
|
||||
* Register callbacks
|
||||
* @throws \Hashids\HashidsException
|
||||
*/
|
||||
protected static function bootHashIdTrait()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user