Skip to content

tyangjawi03/laravel-nextcloud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-nextcloud

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

Install

Via Composer

$ composer require tyangjawi03/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
	    'objectGuid' => 'OBJECT_GUID', // optional params, used when NextCloud instance is using AD/LDAP as Authentication provider so the webDav url will be look like e.g https://example.com/remote.php/dav/files/OBJECT_GUID/
	],
	...
];

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.

About

Laravel Filesystem for NextCloud

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%