Make it easier to switch between v1/v2 layout.

This commit is contained in:
James Cole
2021-02-03 06:25:46 +01:00
parent 957e34a57a
commit 08fcff2a98
12 changed files with 42 additions and 42 deletions

View File

@@ -79,7 +79,7 @@ trait FormSupport
$selected = $this->fillFieldValue($name, $selected);
unset($options['autocomplete'], $options['placeholder']);
try {
$html = view('form.select', compact('classes', 'name', 'label', 'selected', 'options', 'list'))->render();
$html = prefixView('form.select', compact('classes', 'name', 'label', 'selected', 'options', 'list'))->render();
} catch (Throwable $e) {
Log::debug(sprintf('Could not render select(): %s', $e->getMessage()));
$html = 'Could not render select.';