PHP code example of rolandalla / laravel-nextcloud
1. Go to this page and download the library: Download rolandalla/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/ */
rolandalla / laravel-nextcloud example snippets
// config/filesystems.php
'disks' => [
...
'nextCloud' => [
'driver' => 'nextCloud',
'baseUri' => env('NEXT_CLOUD_URL','https://your-web-dat-domain.com'), //replace by yours baseUri
'userName' => env('NEXT_CLOUD_USERNAME','web-dav-username'),
'password' => env('NEXT_CLOUD_PASSWORD','web-dav-password'),
'pathPrefix' => env('NEXT_CLOUD_PATH_PREFIX',false), // Default value is null
],
...
];