Skip to content

Commit

Permalink
Add filesystem / cloud storage commands
Browse files Browse the repository at this point in the history
affects JesseObrien#123 in a small way
  • Loading branch information
Tjoosten authored and Tjoosten committed Jun 26, 2015
1 parent 5af731f commit c13671a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,29 @@ <h6>SFTP Uploads</h6>
<pre class="prettyprint lang-php">SSH::put($localFile, $remotePath);
SSH::putString($string, $remotePath);
</pre>

<h6>Filesystem/Cloud Storage</h6>
<pre class="prettyprint lang-php">
Storage::disk('s3');
Storage::disk('local')->put('file.txt', 'Contents');
Storage::disk('local')->get('file.jpg');
Storage::disk('s3')->exists('file.jpg');
Storage::get('file.jpg');
Storage::put('file.jpg', $contents);
Storage::size('file1.jpg');
Storage::lastModified('file1.jpg');
Storage::copy('old/file1.jpg', 'new/file1.jpg');
Storage::move('old/file1.jpg', 'new/file1.jpg');
Storage::prepend('file.log', 'Prepended Text');
Storage::append('file.log', 'Appended Text');
Storage::delete(['file1.jpg', 'file2.jpg']);
Storage::files($directory);
Storage::allFiles($directory);
Storage::directories($directory);
Storage::allDirectories($directory);
Storage::makeDirectory($directory);
Storage::deleteDirectory($directory);
</pre>
</div>

</div>
Expand Down

0 comments on commit c13671a

Please sign in to comment.