| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function boot() |
||
| 18 | { |
||
| 19 | Storage::extend('upyun', function ($app, $config) { |
||
| 20 | $adapter = new UpyunAdapter( |
||
| 21 | $config['bucket'], $config['operator'], |
||
| 22 | $config['password'],$config['domain'],$config['protocol'] |
||
| 23 | ); |
||
| 24 | |||
| 25 | $filesystem = new Filesystem($adapter); |
||
| 26 | |||
| 27 | $filesystem->addPlugin(new ImagePreviewUrl()); |
||
| 28 | |||
| 29 | return $filesystem; |
||
| 30 | }); |
||
| 31 | } |
||
| 32 | |||
| 43 |