improve code

This commit is contained in:
2025-08-04 19:03:07 +03:30
parent 8628ec7d14
commit c89ae6e826
11 changed files with 118 additions and 14 deletions

View File

@@ -13,7 +13,8 @@ class RejectRequest extends FormRequest
public function authorize(): bool
{
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Modir_Kol->value; }
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Modir_Kol->value;
}
/**
* Get the validation rules that apply to the request.