Skip to content

Commit 111f5a1

Browse files
committed
Merge pull request #127 from Tjoosten/master
PR affects #119 #120 #123
2 parents 0cfecc8 + c13671a commit 111f5a1

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

index.html

+25-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h6>Inserts, Updates, Deletes</h6>
356356
DB::table('name')->insertGetId(array('name' => 'John', 'email' => '[email protected]'));
357357
// Batch insert
358358
DB::table('name')->insert(array(
359-
array('name' => 'John', 'email' => '[email protected]')
359+
array('name' => 'John', 'email' => '[email protected]'),
360360
array('name' => 'James', 'email' => '[email protected]')
361361
));
362362
// Update an entry
@@ -1270,6 +1270,7 @@ <h6>Strings</h6>
12701270
str_is('foo*', 'foobar');
12711271
str_plural('car');
12721272
str_random(25);
1273+
str_limit($value, $limit = 100, $end = '...')
12731274
str_singular('cars');
12741275
// Result: FooBar
12751276
studly_case('foo_bar');
@@ -1357,6 +1358,29 @@ <h6>SFTP Uploads</h6>
13571358
<pre class="prettyprint lang-php">SSH::put($localFile, $remotePath);
13581359
SSH::putString($string, $remotePath);
13591360
</pre>
1361+
1362+
<h6>Filesystem/Cloud Storage</h6>
1363+
<pre class="prettyprint lang-php">
1364+
Storage::disk('s3');
1365+
Storage::disk('local')->put('file.txt', 'Contents');
1366+
Storage::disk('local')->get('file.jpg');
1367+
Storage::disk('s3')->exists('file.jpg');
1368+
Storage::get('file.jpg');
1369+
Storage::put('file.jpg', $contents);
1370+
Storage::size('file1.jpg');
1371+
Storage::lastModified('file1.jpg');
1372+
Storage::copy('old/file1.jpg', 'new/file1.jpg');
1373+
Storage::move('old/file1.jpg', 'new/file1.jpg');
1374+
Storage::prepend('file.log', 'Prepended Text');
1375+
Storage::append('file.log', 'Appended Text');
1376+
Storage::delete(['file1.jpg', 'file2.jpg']);
1377+
Storage::files($directory);
1378+
Storage::allFiles($directory);
1379+
Storage::directories($directory);
1380+
Storage::allDirectories($directory);
1381+
Storage::makeDirectory($directory);
1382+
Storage::deleteDirectory($directory);
1383+
</pre>
13601384
</div>
13611385

13621386
</div>

0 commit comments

Comments
 (0)