pwdev/laravel-nextcloud

Laravel NextCloud Filesystem

dev-master 2023-11-07 14:41 UTC

This package is auto-updated.

Last update: 2024-04-07 15:36:44 UTC


README

Based on https://github.com/pascalbaljetmedia/laravel-webdav

Install

Via Composer

$ composer require toka/laravel-nextcloud

Usage

Register the service provider in your app.php config file:

// config/app.php

'providers' => [
    ...
    PWDev\NextCloudStorage\NextCloudServiceProvider::class
    ...
];

Create a NextCloud filesystem disk:

// config/filesystems.php

'disks' => [
	...
	'nextcloud' => [
	    'driver'     => 'nextcloud',
	    'baseUri'    => 'https://cloud.example.com',
	    'userName'   => 'username',
	    'password'   => 'secret',
	    'pathPrefix' => '', // provide a subfolder name if your NextCloud instance isn't running directly on a domain, e.g. https://example.com/drive
	],
	...
];

Security

If you discover any security related issues, please email girangopro@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.