Implemented a block editor for changing the layout of the page
This commit is contained in:
@@ -19,7 +19,14 @@ class StorePreregistrationPageRequest extends FormRequest
|
||||
|
||||
protected function prepareForValidation(): void
|
||||
{
|
||||
$this->preparePreregistrationPageFields();
|
||||
$this->preparePreregistrationPageSettings();
|
||||
$opacity = $this->input('background_overlay_opacity');
|
||||
if ($opacity === null || $opacity === '') {
|
||||
$this->merge(['background_overlay_opacity' => 50]);
|
||||
}
|
||||
if ($this->input('background_overlay_color') === null || $this->input('background_overlay_color') === '') {
|
||||
$this->merge(['background_overlay_color' => '#000000']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -27,6 +34,6 @@ class StorePreregistrationPageRequest extends FormRequest
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return $this->preregistrationPageRules();
|
||||
return $this->preregistrationPageSettingsRules();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user