diff --git a/README.md b/README.md index 60bb082..b7744c7 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,7 @@ Fixing lints - v2.14 Adds path params support - v2.16 Top Navbar is fixed - v2.19 Publish _astro assets +- v2.20 `laravel-request-docs:export` command to export # Contributors diff --git a/src/Commands/ExportRequestDocsCommand.php b/src/Commands/ExportRequestDocsCommand.php index f4934aa..3427b3e 100644 --- a/src/Commands/ExportRequestDocsCommand.php +++ b/src/Commands/ExportRequestDocsCommand.php @@ -18,7 +18,7 @@ public function __construct(LaravelRequestDocs $laravelRequestDoc, LaravelReques { parent::__construct(); - $this->laravelRequestDocs = $laravelRequestDoc; + $this->laravelRequestDocs = $laravelRequestDoc; $this->laravelRequestDocsToOpenApi = $laravelRequestDocsToOpenApi; } @@ -56,12 +56,12 @@ public function handle() $excludedMethods = array_map(fn($item) => strtolower($item), $excludedMethods); //filter while method apis to export - $showGet = !in_array('get', $excludedMethods); - $showPost = !in_array('post', $excludedMethods); - $showPut = !in_array('put', $excludedMethods); - $showPatch = !in_array('patch', $excludedMethods); + $showGet = !in_array('get', $excludedMethods); + $showPost = !in_array('post', $excludedMethods); + $showPut = !in_array('put', $excludedMethods); + $showPatch = !in_array('patch', $excludedMethods); $showDelete = !in_array('delete', $excludedMethods); - $showHead = !in_array('head', $excludedMethods); + $showHead = !in_array('head', $excludedMethods); // Get a list of Doc with route and rules information. $docs = $this->laravelRequestDocs->getDocs(