Just comparing to one of my own projects.
I use listContents($path) rather than allFiles.
Its not quite the same because I create a 'driver' first
$driver = Storage::createSFtpDriver([
'host' => $system->ftphost,
'username' => decrypt($system->ftpuser),
'password' => decrypt($system->ftppass),
'port' => '22',
//'root' => '',
//'passive' => '',
//'ssl' => '',
'timeout' => '10',
]);
$files = collect($driver->listContents($system->ftppath, false));
$system contains client details - each client has their own ftp credentials so I didn't set it up in config.