<?php

declare(strict_types=1);

namespace App\Listeners;

use App\Events\UserLoggedOut;
use Illuminate\Auth\Events\Logout;

/**
 * Class LaravelLogoutEventListener
 *
 * @package App\Listeners
 */
final class LaravelLogoutEventListener
{
    /**
     * @param \Illuminate\Auth\Events\Logout $event
     */
    public function handle(Logout $event)
    {
        event(new UserLoggedOut($event->user, now()));
    }
}
