• 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

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

Laravel unique validation on multiple columns

PHP: remove filename from path

Results page in other window

Laravel MSSQL Server Connection not working

nginx err_connection_refused, can anyone help me?

Losing session data after POST from third party website

How can I make a full text index of the column?

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

How to make autocomplete work in foreach php loop? (vscode, intellisense)

Sort a multidimensional array by integer inside of a string value which is two levels down

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

Multiply each value in array using array_map function

Laravel 8 Multiple Relationships for Factory

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

About Contact Privacy policy Terms and conditions