• 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

Check for PDO Results, If None Display Message, If Yes then Loop Through

Converting array to string and then back in PHP

Can we define variables in `.tpl` files?

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

Laravel update hasMany relationship using saveMany

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

How to create custom authentication in laravel 8?

WooCommerce - unset "<product> removed notice…" on cart page

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

Group rows by column and sum another column within groups [duplicate]

Unable to get password for the instance created from AMI

echo language construct is discouraged. (PHP)

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

How to break out of a foreach once a condition is met?

About Contact Privacy policy Terms and conditions