PHP code example of singlequote / laravel-webdav

1. Go to this page and download the library: Download singlequote/laravel-webdav library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

singlequote / laravel-webdav example snippets



'disks' => [
	...
	'webdav' => [
	    'driver'     => 'webdav',
	    'baseUri'    => env("WEBDAV_BASEURL"),
	    'userName'   => env("WEBDAV_USERNAME"),
	    'password'   => env("WEBDAV_PASSWORD"),
	    
	    // Optional prameters
	    'proxy'      => env("WEBDAV_PROXY", null),
	    'pathPrefix' => env("WEBDAV_PATHPREFIX", ''),
	    'authType'   => env("WEBDAV_AUTHTYPE", null),
	    'encoding'   => env("WEBDAV_ENCODING", null),
	],
	...
];

Storage::disk('webdav')->files('...')