create permission

This commit is contained in:
2025-12-23 11:00:07 +03:30
parent e8e0f2c724
commit 89a0e1d228
8 changed files with 85 additions and 8 deletions

View File

@@ -12,7 +12,8 @@ class NoProcessRequest extends FormRequest
*/
public function authorize(): bool
{
return $this->violation->status === 0 && $this->violation->type === 1;
// return $this->violation->status === 0 && $this->violation->type === 1;
return true;
}
/**
@@ -30,9 +31,9 @@ class NoProcessRequest extends FormRequest
'start_date' => 'required|date',
'end_date' => 'required|date|after:start_date|before:now',
'end_point' => 'required|string',
// 'area' => 'required|array',
// 'area.type' => 'required|string',
// 'area.coordinates' => 'required|array',
'area' => 'array',
'area.type' => 'string',
'area.coordinates' => 'array',
'category_id' => 'required|in:1,2,3',
'explanation' => 'required|string',
];