Laravel Version
11.23.0
PHP Version
8.3.11
Database Driver & Version
No response
Description
When using Laravel version ^11.23.0, I encounter an error Undefined array key "driver" when I have multidimensional config values for disks.
Steps To Reproduce
- Define a multidimensional config value for disks in config/filesystems.php.
- Attempt to use the filesystem configuration in the application.
Expected Behavior: The application should correctly handle multidimensional config values for disks without throwing an error.
Actual Behavior: The application throws an error: Undefined array key "driver".
File that throws error:
src/Illuminate/Filesystem/FilesystemServiceProvider.php:114
Example Configuration:
'disks' => [
'example' => [
'driver' => 'local',
'root' => storage_path('app/example'),
'throw' => true,
],
'nested' => [
'level1' => [
'driver' => 'local',
'root' => storage_path('app/nested/level1'),
'throw' => true,
],
],
],