<?php namespace Fulfillment\Api\Utilities;

class Helper
{
    /**
     * Get the path to the storage folder.
     *
     * @param  string $path
     *
     * @return string
     */
    public static function getStoragePath($path = '')
    {
            return (__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '../storage/') . ($path ? DIRECTORY_SEPARATOR . $path : $path);
    }
}
<?php namespace Fulfillment\Api\Utilities;

class Helper
{
    /**
     * Get the path to the storage folder.
     *
     * @param  string $path
     *
     * @return string
     */
    public static function getStoragePath($path = '')
    {
        if(function_exists('storage_path')){
            return storage_path($path);
        }else {
            return (__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '../storage') . ($path ? DIRECTORY_SEPARATOR . $path : $path);
        }
    }
}
Use storage_path if it exists
Use storage_path if it exists
