Skip to content

Commit

Permalink
Add Cloud filesystem disk explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pere Joan Martorell committed Apr 26, 2016
1 parent 03441df commit 2c8e2b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ Laravel's Flysystem integrations works great with Rackspace; however, a sample c
'url_type' => 'publicURL',
],

#### Default Cloud Filesystem Disk

Many applications store files both locally and in the cloud. For this reason, you may specify a default "cloud" driver. By default, this value is set to the 's3' driver. Therefore, the following methods would store a file in the local and cloud storage, respectively:

Storage::disk('local')->put('file.txt', 'Contents');
Storage::cloud()->put('file.txt', 'Contents');

<a name="basic-usage"></a>
## Basic Usage

Expand Down

0 comments on commit 2c8e2b0

Please sign in to comment.