schema; } /** * Prepare the data for validation. */ protected function prepareForValidation(): void { parent::prepareForValidation(); $controller = $this->route()->getController(); throw_unless($controller instanceof InteractsWithSchema, new RuntimeException("Cannot resolve schema for controller '{$this->route()->getControllerClass()}'")); $this->schema = $controller->schema(); } }