path(); $uri = ltrim(str_replace(env('APP_URL'), '', $routePath), '/'); return $currentPath == $uri; } }