creat and fix

This commit is contained in:
2025-08-18 12:56:48 +03:30
parent 8604958afb
commit 75e18e84e8
9 changed files with 894 additions and 19 deletions

View File

@@ -21,9 +21,9 @@ class CheckAxisTypeMiddleware
*/
public function handle(Request $request, Closure $next): Response
{
$s = $request->route('safetyAndPrivacy');
$s = $request->safetyAndPrivacy;
if (($s->step == 3 || $s->step == 2) && is_null($s->axis_type_id))
if (($s->step == 1 || $s->step == 2) && is_null($s->axis_type_id))
{
throw new ProhibitedAction('ابتدا نوع محور را مشخص کنید');
}