File "PrepareAuthenticatedSession.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/laravel/fortify/src/Actions/PrepareAuthenticatedSession.php
File size: 886 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Laravel\Fortify\Actions;
use Laravel\Fortify\LoginRateLimiter;
class PrepareAuthenticatedSession
{
/**
* The login rate limiter instance.
*
* @var \Laravel\Fortify\LoginRateLimiter
*/
protected $limiter;
/**
* Create a new class instance.
*
* @param \Laravel\Fortify\LoginRateLimiter $limiter
* @return void
*/
public function __construct(LoginRateLimiter $limiter)
{
$this->limiter = $limiter;
}
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @param callable $next
* @return mixed
*/
public function handle($request, $next)
{
if ($request->hasSession()) {
$request->session()->regenerate();
}
$this->limiter->clear($request);
return $next($request);
}
}