Browse Source

Escape all the backslashes

Christophe Hosten 4 năm trước cách đây
mục cha
commit
32b9ecc314
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Tools/Utils.php

+ 1 - 1
src/Tools/Utils.php

@@ -200,7 +200,7 @@ class Utils
             try {
                 $factory = factory($modelName);
             } catch (\Throwable $e) {
-                if (Str::contains($e->getMessage(), "Call to undefined function Knuckles\Scribe\Tools\\factory()")) {
+                if (Str::contains($e->getMessage(), "Call to undefined function Knuckles\\Scribe\\Tools\\factory()")) {
                     throw new \Exception("Couldn't find the Eloquent model factory. Did you add the HasFactory trait to your $modelName model?");
                 } else {
                     throw $e;