I have a website built with Laravel. I need to fetch files from my nextcloud storage and display in the website. I have successfully installed sabre/dav to create a webdav.
$settings = array(
'baseUri' => 'https://cloud.example.com',
'userName' => 'admin',
'password' => 'password'
);
$client = new \Sabre\DAV\Server($settings);
dd($client);
First I am getting 500 internal server error in dd($client) response. Second I don't know what is next. I am stuck here your help will be much appreciated
achieved laravel + nextcloud working with this config:
now you can use laravel
Storage
fasade likeStorage::disk('webdav')->files('folder')
. One thing to mention - this package can'tStorage::disk('webdav')->url('path')
(error This driver does not support retrieving URLs)