|
@@ -7,6 +7,11 @@ use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+use App\Events\CommentAdded;
|
|
|
|
+use App\Listeners\PremoderateComment;
|
|
|
|
+
|
|
class EventServiceProvider extends ServiceProvider
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
{
|
|
|
|
|
|
@@ -18,6 +23,10 @@ class EventServiceProvider extends ServiceProvider
|
|
Registered::class => [
|
|
Registered::class => [
|
|
SendEmailVerificationNotification::class,
|
|
SendEmailVerificationNotification::class,
|
|
],
|
|
],
|
|
|
|
+
|
|
|
|
+ CommentAdded::class => [
|
|
|
|
+ PremoderateComment::class
|
|
|
|
+ ]
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|