Ellipsis before parameter variable PHP Laravel
Was going through Laravel Illuminate core when I met this code..What’s does the ellipsis before parameter $guards
mean?
public function handle($request,Closure $next,...$guards){
$this->authenticate($guards);
return $next($request);
}
from Laravel Questions and Answers https://laravelquestions.com/php/ellipsis-before-parameter-variable-php-laravel/
via Lzo Media
No comments:
Post a Comment