diff --git a/config/api-postman.php b/config/api-postman.php index 089cf3f..80372c8 100644 --- a/config/api-postman.php +++ b/config/api-postman.php @@ -86,13 +86,4 @@ * Specify the configured disk for storing the postman collection file. */ 'disk' => 'local', - - /* - * Generate for available controller methods only - * - * Forces generation to only generate items for actual methods instead of all the - * standard scaffolded ones. Useful for API resources where form routes are not used. - */ - 'available_methods_only' => true, - ]; diff --git a/src/Commands/ExportPostmanCommand.php b/src/Commands/ExportPostmanCommand.php index 9de5008..165ac38 100644 --- a/src/Commands/ExportPostmanCommand.php +++ b/src/Commands/ExportPostmanCommand.php @@ -150,7 +150,7 @@ protected function getReflectionMethod(array $routeAction): ?object $routeData = explode('@', $routeAction['uses']); $reflection = new ReflectionClass($routeData[0]); - if ($this->config['available_methods_only'] && ! $reflection->hasMethod($routeData[1])) { + if (! $reflection->hasMethod($routeData[1])) { return null; }