function __construct(Factory $validator, MessageBag $errors) { $this->validator = $validator; $this->errors = $errors; }