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"),
	    'pathPrefix' => env("WEBDAV_PATHPREFIX", ''),

	    // Optional prameters
	    // 'proxy'      => env("WEBDAV_PROXY", 'locahost:8888'),
	    // 'authType'   => env("WEBDAV_AUTHTYPE", null),
	    // 'encoding'   => env("WEBDAV_ENCODING", null),
	],
	...
];

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

'webdav' => [
	...
	'proxy'      => env("WEBDAV_PROXY", 'locahost:8888'),
]

'webdav' => [
	...
	'authType'      => env("WEBDAV_AUTHTYPE", 1), // 1 = Uses Basic authentication
]

'webdav' => [
	...
	'encoding'      => env("WEBDAV_ENCODING", 1), // 1 = Uses Identity encoding
]