• 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

Laravel phpunit test failing authorization

How can I get data from PHP to Android TextView?

get attribute from class not working php 7

OctoberCMS / Anonymous Global Scope

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

PHP Print to Network Printer

How to get Laravel's CSRF Token from Another Website?

Target Individual Form Instance/Counter Inside A PHP While Loop

Combining a describing and one array with data

Laravel Unknown Column 'updated_at'

Laravel update hasMany relationship using saveMany

PHP mail function is sending blank message body

PHP using str_starts_with for array to exclude same as with wildcard

unable to load your default controller on Codeigniter

Post Form Data To phpmyadmin Database

About Contact Privacy policy Terms and conditions