fix form request

This commit is contained in:
2025-05-27 15:41:48 +03:30
parent 3e01f4e3b9
commit 151d7ed566
2 changed files with 4 additions and 5 deletions

View File

@@ -11,9 +11,9 @@ class ConfirmPaymentInfoRequest extends FormRequest
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(Accident $accident): bool
public function authorize(): bool
{
return $accident->status === AccidentStates::SODOR_NAME_BIME_VA_DAGHI->value;
return $this->accident->status === AccidentStates::SODOR_NAME_BIME_VA_DAGHI->value;
}
/**