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?