| 1 | <?php |
||
| 9 | trait Storage |
||
| 10 | { |
||
| 11 | protected $disk; |
||
| 12 | protected $path = ''; |
||
| 13 | protected $multiple = false; |
||
| 14 | |||
| 15 | protected function storeFile(UploadedFile $file, $filename, Request $request) |
||
| 23 | |||
| 24 | 1 | public function multiple(bool $multiple = true) |
|
| 30 | |||
| 31 | 2 | public function isMultiple() |
|
| 35 | |||
| 36 | public function disk(string $disk) |
||
| 42 | |||
| 43 | public function getDisK() |
||
| 47 | |||
| 48 | public function path(string $path) |
||
| 54 | |||
| 55 | public function getPath() |
||
| 59 | |||
| 60 | public function getUrl($model) |
||
| 83 | } |
||
| 84 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.