added feature for binding form to page and fixing bugs

This commit is contained in:
F4ilji
2025-04-22 21:15:03 +05:00
parent aea6304ac4
commit 45c84e7ffb
12 changed files with 107 additions and 9 deletions
@@ -23,8 +23,9 @@ class FormTimePeriodMiddleware
abort(Response::HTTP_NOT_FOUND, 'Form not found');
}
if (!isset($form->settings['period'])) {
abort(Response::HTTP_BAD_REQUEST, 'Invalid form settings');
return $next($request);
}
$period = $form->settings['period'];