123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Listeners;
- use App\Events\ExampleEvent;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Support\Facades\Log;
- class ExampleListener
- {
- /**
- * Create the event listener.
- *
- * @return void
- */
- public function __construct()
- {
- //
- }
- /**
- * Handle the event.
- *
- * @param ExampleEvent $event
- * @return void
- */
- public function handle(ExampleEvent $event)
- {
- //
- Log::info($event->arr);
- }
- }
|