<?php

declare(strict_types=1);

namespace App\Listeners;

use App\Events\UserLoggedIn;
use Illuminate\Auth\Events\Login;

/**
 * Class LaravelLoginEventListener
 */
final class LaravelLoginEventListener
{
    /**
     * @return void
     */
    public function handle(Login $event)
    {
        event(new UserLoggedIn($event->user, now()));
    }
}
