/** * Get the value of this input from the validator. * FIXME: this is done poorly, should send the value through on construction or something. * * @return string */ public function getValue() { return $this->validator->get($this); }
/** * Store the closure and setup the parent. * * @param closure $closure * @param Illuminate\Http\Request $request * @param Illuminate\Validation\Factory $validation * @param Illuminate\Routing\Router $router */ public function __construct(Closure $closure, Request $request, ValidationFactory $validation, Router $router) { $this->closure = $closure; parent::__construct($request, $validation, $router); }