v2board/app/Listeners/ServerCreatedListener.php
2019-12-17 17:13:57 +08:00

30 lines
550 B
PHP

<?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', json_encode($event->serverLog));
}
}