• 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

php retrieve specific data onclick from database in a list format

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

PHP my timezone is no setting up in PHP.ini File in xampp

Laravel UUID generation

Make Calculator - When Button clicked the No shows in Textbox.

Custom post type single page not working

Only on Firefox "Loading failed for the <script> with source"

How to convert a carbon into string, to take the date only?

Form Validation and Submission to database

Phpunit partial mock + proxy Entity

Fatal error: [] operator not supported for strings

Substitute integers and dots with regex [duplicate]

401 Unauthorized only occurring on some pages in Laravel 8

woocommerce get_order_report_data to show order_item_id

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

About Contact Privacy policy Terms and conditions