diff --git a/src/Ziggy.php b/src/Ziggy.php index 0046043c..912e839b 100644 --- a/src/Ziggy.php +++ b/src/Ziggy.php @@ -276,7 +276,7 @@ private function folioRoutes(): Collection } $matchedView = new MatchedView(realpath($route['path']), [], $route['mountPath']); - $mountPath = Arr::first($mountPaths, fn ($mountPath) => $mountPath->path === realpath($route['mountPath'])); + $mountPath = Arr::first($mountPaths, fn ($mountPath) => realpath($mountPath->path) === realpath($route['mountPath'])); dump($matchedView); dump($mountPath);