• 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

Artisan, creating tables in database

Edit product hook WooCommerce

PHP Print to Network Printer

Call to a member function givePermissionTo() on null

How can I format this number correctly using PHP?

Laravel You requested 1 items, but there are only 0 items available

CodeIgniter extend CI_URI undefined method

Laravel lang slug in url

How to render html from a @foreach loop in a textarea

OctoberCMS / Anonymous Global Scope

Send POST data via raw JSON with Postman

Cant seem to get the Pagination to work on my WooCommerce REST API application?

browsersync doesn't work with XAMPP

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

printing all running session variable in laravel 5.1

About Contact Privacy policy Terms and conditions