Skip to content

Commit 4c09f82

Browse files
author
FreedomKnight
committed
修改文件 以及修改 typo
1 parent 86461be commit 4c09f82

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

readme.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44

55
FileEntry API is good way to handle files with Laravel Storage.
66

7+
### Install FileEntry
8+
9+
composer.json:
10+
11+
"require" : {
12+
"unisharp/laravel-fileentry" : "dev-master"
13+
},
14+
"repositories": {
15+
"type": "git",
16+
"url": "https://github.com/UniSharp/laravel-fileentry.git
17+
}
18+
19+
save it and then
20+
21+
composer update
22+
723
### Initialize FileEntry
824

925
use \Unisharp\FileEntry\FileEntry;
@@ -30,9 +46,9 @@ or
3046
$files += $entry->save('images');
3147
}
3248

33-
* Costimize your upload file name
49+
* Custimize your upload file name
3450

35-
$file = $entry->save('image', 'costimized_filename'); // => costimized_filename.jpg
51+
$file = $entry->save('image', 'custimized_filename'); // => custimized_filename.jpg
3652
3753

3854
### Get file fullpath

0 commit comments

Comments
 (0)