if (Cache::has($cacheKey) && config('app.env') === 'production') {
$docs = Cache::get($cacheKey);
} else {
- $docs = (new static())->generate();
+ $docs = (new ApiDocsGenerator())->generate();
Cache::put($cacheKey, $docs, 60 * 24);
}
}
$rules = $class->getValdationRules()[$methodName] ?? [];
+
return empty($rules) ? null : $rules;
}