Level 35
Use the filesystem of Laravel which can interact with external storage systems like DO Spaces.
https://laravel.com/docs/7.x/filesystem
- Configure your DO Spaces in filesystem.php and add the credentials to your .env
- Get all files
Storage::disk('your-disk-name')->allFiles('/directory/')see: https://laravel.com/docs/7.x/filesystem#directories
1 like