You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can create folder at shared folder betwen two accounts but I can't show the files and directories in that folder.
Plessea tell me where is wrong.
Laravel Framework 10.13.5
PHP 8.1.10 Route::get('list-files', function() { $recursive = false; // Get subdirectories also? $contents = collect(Storage::cloud()->listContents('/', $recursive)); dd($contents->where('type', 'dir')); return $contents->where('type', 'dir'); // directories // return $contents->where('type', 'file')->mapWithKeys(function($file) { // return [$file->path() => pathinfo($file->path(),PATHINFO_BASENAME)]; // }); });
The text was updated successfully, but these errors were encountered:
I can create folder at shared folder betwen two accounts but I can't show the files and directories in that folder.
Plessea tell me where is wrong.
Laravel Framework 10.13.5
PHP 8.1.10
Route::get('list-files', function() { $recursive = false; // Get subdirectories also? $contents = collect(Storage::cloud()->listContents('/', $recursive)); dd($contents->where('type', 'dir')); return $contents->where('type', 'dir'); // directories // return $contents->where('type', 'file')->mapWithKeys(function($file) { // return [$file->path() => pathinfo($file->path(),PATHINFO_BASENAME)]; // }); });
The text was updated successfully, but these errors were encountered: