File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff 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
6158or
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
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
112105if you store your file into cloud storage and you want to get url cloud site,
113106you 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
You can’t perform that action at this time.
0 commit comments