• 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

Destroy session upon refresh

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

500 Internal Server Error on Ajax request. Not sure the origin of the problem

if statement inside concatenation

Failed user login on production server using Symfony framework (Authentication request could not be processed due to...)

Converting array to string and then back in PHP

Submitting a form with ajax in Wordpress

Laravel/docker-compose/redis - Class 'Redis' not found

Exact alternate to mcrypt_encrypt in PHP 7.2

How to convert a carbon into string, to take the date only?

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

What will the best solution for this multiple optional filter?

How to use $this->session->set_userdata in codeigniter

Laravel 5.1 Unknown database type enum requested

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

About Contact Privacy policy Terms and conditions