Browse Source

Use named argument

Shalvah 2 years ago
parent
commit
e68b5b2bd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Extracting/Strategies/UrlParameters/GetFromLaravelAPI.php

+ 1 - 1
src/Extracting/Strategies/UrlParameters/GetFromLaravelAPI.php

@@ -214,7 +214,7 @@ class GetFromLaravelAPI extends Strategy
         $className = str_replace(['-', '_', ' '], '', Str::title($urlThing));
         $rootNamespace = app()->getNamespace();
 
-        if (class_exists($class = "{$rootNamespace}Models\\" . $className, false)
+        if (class_exists($class = "{$rootNamespace}Models\\" . $className, autoload: false)
             // For the heathens that don't use a Models\ directory
             || class_exists($class = $rootNamespace . $className, false)) {
             try {