• 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

Detect emoticons in string

Laravel Excel::store file empty after stored

Respond with status code 401 on authentication failure using Laravel and Passport?

Input and output values for php into the browser?

Laravel passport auth token not working after moving to different server

Don't show recurring price for WooCommerce subscriptions worth 0$

Laravel display validation error

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

enroll_table three field fetch to payment form to create payment field in laravel 5.5

Yii2: How do I debug console commands?

Log file is not being written in Laravel 5.5

Cannot connect to own websocket server when on secured domain

Can I write PHP code across multiple lines per statement?

Is there a way to correctly use sanitize_text_field and wp_unslash that doesn't cause psalm to error with "expects string, possibly different type"

How can i update or reset my password without entering email field in laravel-8?

About Contact Privacy policy Terms and conditions