| 1 | <?php |
||
| 7 | trait AssetHelper |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Get Filesystem instance for the given identifier. |
||
| 11 | * |
||
| 12 | * @param string|null $identifier |
||
| 13 | * @return \Illuminate\Contracts\Filesystem\Filesystem |
||
| 14 | */ |
||
| 15 | public function getFilesystem($identifier = null) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get asset URL. |
||
| 22 | * |
||
| 23 | * @param string $path |
||
| 24 | * @param string|null $identifier |
||
| 25 | * @return string|null |
||
| 26 | */ |
||
| 27 | protected function getAssetUrl($path, $identifier = null) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get disk name for filesystem. |
||
| 42 | * |
||
| 43 | * @param string|null $identifier |
||
| 44 | * @return string|null |
||
| 45 | */ |
||
| 46 | protected function getFilesystemDisk($identifier = null) |
||
| 50 | } |
||
| 51 |