The filesystem configuration file is located at
config/filesystems.php. Within this file you may configure all of your "disks". Each disk represents a particular storage driver and storage location. Example configurations for each supported driver is included in the configuration file. So, simply modify the configuration to reflect your storage preferences and credentials!
Before using the S3 or Rackspace drivers, you will need to install the appropriate package via Composer:
Of course, you may configure as many disks as you like, and may even have multiple disks that use the same driver.
When using the local driver, note that all file operations are relative to the root directory defined in your configuration file. By default, this value is set to the
storage/app directory. Therefore, the following method would store a file in