src/Assets.php
public function removeViewFromPath($path)
    {
        $folderBits = explode('/', $path);
        if (strtolower(end($folderBits)) === 'views') {
            array_pop($folderBits);
            $path = implode('/', $folderBits);
        }

        return $path;
    }
public function removeViewFromPath($path)
    {
        $folderBits = explode('/', $path);
        if (strtolower(end($folderBits)) === 'views') {
            array_pop($folderBits);
            $path = implode('/', $folderBits);
        }

        return $path;
    }
public function removeViewFromPath ( $ path ) { $ folderBits = explode ( '/' , $ path ) ; if ( strtolower ( end ( $ folderBits ) ) === 'views' ) { array_pop ( $ folderBits ) ; $ path = implode ( '/' , $ folderBits ) ; } return $ path ; }
remove 'views' from any folder path

@param string $path View path
@return string $path Path with view folder remove
remove views from any folder path