PHP code example of tyangjawi03 / laravel-nextcloud
1. Go to this page and download the library: Download tyangjawi03/laravel-nextcloud 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/ */
// config/filesystems.php
'disks' => [
...
'nextcloud' => [
'driver' => 'nextcloud',
'baseUri' => 'https://mywebdavstorage.com',
'userName' => 'johndoe',
'password' => 'secret',
'pathPrefix' => '', // provide a subfolder name if your NextCloud instance isn't running directly on a domain, e.g. https://example.com/drive
'objectGuid' => 'OBJECT_GUID', // optional params, used when NextCloud instance is using AD/LDAP as Authentication provider so the webDav url will be look like e.g https://example.com/remote.php/dav/files/OBJECT_GUID/
],
...
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.