//ads:
?>
Fetch files from next cloud storage and display in Laravel website
PHP Snippet 1:
'disks' => [
...
'webdav' => [
'driver' => 'webdav',
'baseUri' => env('NEXTCLOUD_URL'),
'userName' => env('NEXTCLOUD_USER'),
'password' => env('NEXTCLOUD_PASSWORD'),
'pathPrefix' => 'remote.php/dav/files/USERNAME_HERE/', // pay attention on closing slash
],
],
PHP Snippet 2:
NEXTCLOUD_URL=https://nextcloud_base_url/ #https://nextcloud.example.com/
NEXTCLOUD_USER=username
NEXTCLOUD_PASSWORD=password