24 lines
452 B
PHP
24 lines
452 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Events\ArticleFetched;
|
|
use App\Listeners\CheckArticleKeywords;
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
Event::listen(
|
|
ArticleFetched::class,
|
|
CheckArticleKeywords::class,
|
|
);
|
|
}
|
|
}
|