add code validation

This commit is contained in:
2025-07-14 15:40:45 +03:30
parent e2ee18be76
commit 071ec14125
5 changed files with 24 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ class StoreRequest extends FormRequest
{
return [
function (Validator $validator) {
if ($this->type === 1){
if ($this->type == 1){
$start = Carbon::parse($this->start_date);
$end = Carbon::parse($this->end_date);