diff --git a/app/Api/ApiDocsGenerator.php b/app/Api/ApiDocsGenerator.php index 3aabfb4cc..ea77ae450 100644 --- a/app/Api/ApiDocsGenerator.php +++ b/app/Api/ApiDocsGenerator.php @@ -95,6 +95,7 @@ class ApiDocsGenerator } $rules = $class->getValdationRules()[$methodName] ?? []; + return empty($rules) ? null : $rules; } diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index 212bb6ab1..5e73b232c 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -44,7 +44,7 @@ class ForgotPasswordController extends Controller public function sendResetLinkEmail(Request $request) { $this->validate($request, [ - 'email' => ['required', 'email'] + 'email' => ['required', 'email'], ]); // We will send the password reset link to this user. Once we have attempted