I was working with Laravel 5.3 and in one of the functions, I found this piece of
code:
public function handle($request, Closure $next, ...$guards)
{
$this->authenticate($guards);
return $next($request);
}
The code comes from IlluminateAuthMiddlewareAuthenticate::class
.
What are those 3 dots before $guards
variable?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…