• 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

Yii2: How to download backup files using spanjeta/yii2-backup?

Is it possible to change the table name in the migration file-laravel

Form repeater send wrong data with last element in Laravel

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

Laravel MSSQL Server Connection not working

Add and update products to session cart in Laravel

How do I refresh a DIV content?

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

dockerizing Laravel + vue

Alert message after submitting form in PHP

How can I pass the list to the component variable in Laravel?

Detect if PHP session exists

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

Target Laravelista is not instantiable

About Contact Privacy policy Terms and conditions