Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nextgen-tech/laravel-nextcloud-driver

Laravel Filesystem Driver for NextCloud
https://github.com/nextgen-tech/laravel-nextcloud-driver

cloud filesystem flysystem laravel nextcloud storage

Last synced: about 2 months ago
JSON representation

Laravel Filesystem Driver for NextCloud

Awesome Lists containing this project

README

        

# Laravel Nextcloud Filesystem Driver

Based on [pbmedia/laravel-webdav](https://github.com/pascalbaljetmedia/laravel-webdav), fork of [jedlikowski/laravel-nextcloud](https://github.com/jedlikowski/laravel-nextcloud).

## Installation

```bash
composer require nextgen-tech/laravel-nextcloud-driver
```

## Usage

Create a Nextcloud filesystem disk:

```php
// config/filesystems.php

'disks' => [
...
'nextcloud' => [
'driver' => 'nextcloud',
'url' => env('NEXTCLOUD_URL', ''),
'user' => env('NEXTCLOUD_USER', ''),
'password' => env('NEXTCLOUD_PASSWORD'),
'proxy' => env('NEXTCLOUD_PROXY'),
'encoding' => env('NEXTCLOUD_ENCODING'),
],
...
];
```

Add variables to .env file:

```
NEXTCLOUD_URL=
NEXTCLOUD_USER=
NEXTCLOUD_PASSWORD=
NEXTCLOUD_PROXY=
NEXTCLOUD_ENCODING=
```