fix tests
This commit is contained in:
@@ -6,14 +6,18 @@ use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class CarryforwardFinalizeRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool { return true; }
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'from_school_year' => ['required_without:id','string','max:20'],
|
||||
'to_school_year' => ['required_without:id','string','max:20'],
|
||||
'parent_id' => ['nullable','integer'],
|
||||
'reason' => ['nullable','string','max:255'],
|
||||
'from_school_year' => ['required_without:id', 'string', 'max:20'],
|
||||
'to_school_year' => ['required_without:id', 'string', 'max:20'],
|
||||
'parent_id' => ['nullable', 'integer'],
|
||||
'reason' => ['nullable', 'string', 'max:255'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user