Explorar o código

Add descriptive comment

Shalvah %!s(int64=5) %!d(string=hai) anos
pai
achega
2c6bf92ddd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Extracting/Generator.php

+ 2 - 0
src/Extracting/Generator.php

@@ -45,6 +45,8 @@ class Generator
     {
         $methods = $route->methods();
 
+        // Laravel adds an automatic "HEAD" endpoint for each GET request, so we'll strip that out,
+        // but not if there's only one method (means it was intentional)
         if (count($methods) === 1) {
             return $methods;
         }