protected function folderIsNotAccessible(Request $request)
    {
        if (isset($request['folder']) && empty($request->get('folder'))) {
            return true;
        }

        return ! Storage::exists($this->currentDir) && $request->has('folder') || $request->get('folder') === 'public';
    }
protected function folderIsNotAccessible(Request $request)
    {
        if (isset($request['folder']) && empty($request->get('folder'))) {
            return true;
        }

        return ! Storage::exists($this->currentDir) && $request->has('folder') || $request->get('folder') === 'public';
    }
protected function folderIsNotAccessible ( Request $ request ) { if ( isset ( $ request [ 'folder' ] ) && empty ( $ request -> get ( 'folder' ) ) ) { return true ; } return ! Storage :: exists ( $ this -> currentDir ) && $ request -> has ( 'folder' ) || $ request -> get ( 'folder' ) === 'public' ; }
Check if current folder and folder being requested is accessible.

@param \Illuminate\Http\Request $request
@return bool
Check if current folder and folder being requested is accessible .