public function getPathFromUrl($url)
    {
        $cacheKey = md5(serialize($url));

        return Cache::remember($cacheKey, function () use ($url) {
            $plugin = 'App';
            $action = 'index';

            $parsedUrl = !is_array($url) ? Router::parse($url) : $url;

            if (isset($parsedUrl['plugin']) && !empty($parsedUrl['plugin'])) {
                $plugin = $parsedUrl['plugin'];
            }
            $controller = $parsedUrl['controller'];
            if (isset($parsedUrl['action']) && $parsedUrl['action'] !== '') {
                $action = $parsedUrl['action'];
            }

            return $plugin . '.' . $controller . '.' . $action;
        }, 'wasabi/core/guardian_paths');
    }