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);
}
代码来自\Illuminate\Auth\Middleware\Authenticate::class
.
$guards
变量前的3个点是什么?