blessing-skin-server/app/Http/Middleware/FireUserAuthenticated.php
2019-05-19 05:49:44 +00:00

18 lines
295 B
PHP

<?php
namespace App\Http\Middleware;
use Closure;
class FireUserAuthenticated
{
public function handle($request, Closure $next)
{
if (auth()->check()) {
event(new \App\Events\UserAuthenticated($request->user()));
}
return $next($request);
}
}