Credits on the idea go to : https://github.com/protonemedia/laravel-webdav#laravel-webdav
Via Composer
$ composer require rolandalla/laravel-nextcloud
Create a NextCloud filesystem disk:
// config/filesystems.php
'disks' => [
...
'nextCloud' => [
'driver' => 'nextCloud',
'baseUri' => env('NEXT_CLOUD_URL','https://your-web-dat-domain.com'), //replace by yours baseUri
'userName' => env('NEXT_CLOUD_USERNAME','web-dav-username'),
'password' => env('NEXT_CLOUD_PASSWORD','web-dav-password'),
'pathPrefix' => env('NEXT_CLOUD_PATH_PREFIX',false), // Default value is null
],
...
];
The MIT License (MIT).