Back in september 2022, https://twitter.com/frankdejonge introduced a new https://github.com/laravel/framework/pull/44105 filesystem driver to Laravel. This driver works by extending an existing disk and configuring a prefix, which would be a path to a directory in the extended disk.

For instance, say you have user avatars, contracts and passports.

The reason for that is that most of the time, we no longer use the default disk, so configuring it is not necessary.

Since default no longer use it, we can use the FILESYSTEM_DISK environment variable to configure the base disk for all our scoped disks.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners