Skip to content

Commit

Permalink
Merge pull request #127 from Tjoosten/master
Browse files Browse the repository at this point in the history
PR affects #119 #120 #123
  • Loading branch information
JesseObrien committed Jun 29, 2015
2 parents 0cfecc8 + c13671a commit 111f5a1
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ <h6>Inserts, Updates, Deletes</h6>
DB::table('name')->insertGetId(array('name' => 'John', 'email' => '[email protected]'));
// Batch insert
DB::table('name')->insert(array(
array('name' => 'John', 'email' => '[email protected]')
array('name' => 'John', 'email' => '[email protected]'),
array('name' => 'James', 'email' => '[email protected]')
));
// Update an entry
Expand Down Expand Up @@ -1270,6 +1270,7 @@ <h6>Strings</h6>
str_is('foo*', 'foobar');
str_plural('car');
str_random(25);
str_limit($value, $limit = 100, $end = '...')
str_singular('cars');
// Result: FooBar
studly_case('foo_bar');
Expand Down Expand Up @@ -1357,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 111f5a1

Please sign in to comment.