public function isPublic()
    {
        $service = Service::whereName($this->storageService)->first()->toArray();
        $publicPaths = array_get($service, 'config.public_path');

        if (!empty($publicPaths)) {
            foreach ($publicPaths as $pp) {
                if (trim($this->storageFolder, '/') == trim($pp, '/')) {
                    return true;
                }
            }
        }

        return false;
    }
public function isPublic()
    {
        $service = Service::whereName($this->storageService)->first()->toArray();
        $publicPaths = array_get($service, 'config.public_path');

        if (!empty($publicPaths)) {
            foreach ($publicPaths as $pp) {
                if (trim($this->storageFolder, '/') == trim($pp, '/')) {
                    return true;
                }
            }
        }

        return false;
    }
public function isPublic ( ) { $ service = Service :: whereName ( $ this -> storageService ) -> first ( ) -> toArray ( ) ; $ publicPaths = array_get ( $ service , 'config.public_path' ) ; if ( ! empty ( $ publicPaths ) ) { foreach ( $ publicPaths as $ pp ) { if ( trim ( $ this -> storageFolder , '/' ) == trim ( $ pp , '/' ) ) { return true ; } } } return false ; }
Checks to see if the URL of the exported zip file is
publicly accessible.

@return bool
Checks to see if the URL of the exported zip file is publicly accessible .