Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Latest commit

 

History

History
executable file
·
59 lines (41 loc) · 1.18 KB

README.md

File metadata and controls

executable file
·
59 lines (41 loc) · 1.18 KB

laravel-nextcloud

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

Install

Via Composer

$ composer require jedlikowski/laravel-nextcloud

Usage

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

// config/app.php

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

Create a NextCloud filesystem disk:

// config/filesystems.php

'disks' => [
	...
	'nextcloud' => [
	    'driver'     => 'nextcloud',
	    'baseUri'    => 'https://mywebdavstorage.com',
	    'userName'   => 'johndoe',
	    '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 jakub.jedlikowski@gmail.com instead of using the issue tracker.

Credits

License

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