123456789101112131415161718192021222324252627282930 |
- <?php
- namespace App\Listeners;
- use App\Events\ServerCreatedEvent;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Queue\ShouldQueue;
- class ServerCreatedListener
- {
- /**
- * Create the event listener.
- *
- * @return void
- */
- public function __construct()
- {
- //
- }
- /**
- * Handle the event.
- *
- * @param ServerCreatedEvent $event
- * @return void
- */
- public function handle(ServerCreatedEvent $event) {
- info('listener', $event->serverLog);
- }
- }
|