create permission
This commit is contained in:
@@ -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',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user