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