• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Fetch files from next cloud storage and display in Laravel website

phplaravelapinextcloudsabredav


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

Related Snippets

merge all files in directory to one text file

How do I call Validator from a namespace with an already existing Validator class

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

How to set a domain name with php artisan serve

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

What is PHP's equivalent of JavaScript's "array.every()"?

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

How to convert the int value to inch in PHP [closed]

PHP how to detect if running on arm64 cpu?

Sliders in Laravel

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

image source not readable

Symfony run hint kernel.secret parameter not found

Stop caching for PHP 5.5.3 in MAMP

insert multiple rows in a saveall in cakephp

About Contact Privacy policy Terms and conditions