1 | <?php |
||
8 | class Filesystem extends IlluminateFilesystem |
||
9 | { |
||
10 | /** |
||
11 | * Extract the trailing name component from a file path. |
||
12 | * |
||
13 | * @param string $path |
||
14 | * @return string |
||
15 | */ |
||
16 | 1 | public function basename($path) |
|
20 | |||
21 | /** |
||
22 | * tmpfilename. |
||
23 | * |
||
24 | * @param string $path |
||
25 | * @param string $hash |
||
26 | * @return string |
||
27 | */ |
||
28 | 1 | public function tmpfilename($path, $hash = null) |
|
32 | |||
33 | /** |
||
34 | * appendStream. |
||
35 | * |
||
36 | * @param string $output |
||
37 | * @param string|resource $input |
||
38 | * @param int $offset |
||
39 | */ |
||
40 | 3 | public function appendStream($output, $input, $offset = 0) |
|
54 | |||
55 | /** |
||
56 | * createUploadedFile. |
||
57 | * |
||
58 | * @param string $path |
||
59 | * @param string $originalName |
||
60 | * @param string $mimeType |
||
61 | * @param int $size |
||
62 | * @return \Illuminate\Http\UploadedFile |
||
63 | */ |
||
64 | 1 | public function createUploadedFile($path, $originalName, $mimeType = null, $size = null) |
|
74 | |||
75 | /** |
||
76 | * convertToResource. |
||
77 | * |
||
78 | * @param string|resource $resource |
||
79 | * @param string $mode |
||
80 | * @param string $type |
||
81 | * @return resource |
||
82 | */ |
||
83 | 3 | protected function convertToResource($resource, $mode = 'wb', $type = 'input') |
|
96 | } |
||
97 |