Skip to content

Commit eff6aee

Browse files
committed
Update readme.md
1 parent 156712e commit eff6aee

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

readme.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,13 @@ in `config/fileapi.php`
5252

5353
### Initialize File API
5454

55-
```php
5655
use \Unisharp\FileApi\FileApi;
57-
5856
$fa = new FileApi();
59-
```
6057

6158
or
6259

63-
```php
6460
$fa = new FileApi('/images/event/'); # initialize it by giving a base path
6561
$fa_article = new FileApi('/images/article/'); # initiate another instance
66-
```
6762

6863

6964
### Save to Storage By Giving Uploaded File
@@ -104,17 +99,13 @@ or
10499

105100
### Get file fullpath (abstract path from Laravel Storage)
106101

107-
```php
108102
$fa->getPath('wfj412.jpg'); // => '/images/event/wfj412.jpg'
109-
```
110103

111104
### Parse File Path to URL
112105
if you store your file into cloud storage and you want to get url cloud site,
113106
you can use url() method to get it
114107

115-
```php
116108
echo $fa->getUrl('wfjsdf.jpg'); // => "https://s3-ap-northeast-1.amazonaws.com/xxx/xxx/55c1e027caa62L.png"
117-
```
118109

119110
### Work with Laravel Storage
120111

0 commit comments

Comments
 (0)