public function getResourceFromPath(Route $route, $path) {
        // Explode it.
        $chunks = explode("/", $path);
        return $route->resourceOffset ? $chunks[$route->resourceOffset ] : null;
    }
public function getResourceFromPath(Route $route, $path) {
        // Explode it.
        $chunks = explode("/", $path);
        return $route->resourceOffset ? $chunks[$route->resourceOffset ] : null;
    }
public function getResourceFromPath ( Route $ route , $ path ) { // Explode it. $ chunks = explode ( "/" , $ path ) ; return $ route -> resourceOffset ? $ chunks [ $ route -> resourceOffset ] : null ; }
Extract the resource identifier from the given path.

@param Route $route
@param       $path

@return mixed resource identifier
Extract the resource identifier from the given path .