Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function handle() |
||
38 | { |
||
39 | $this->url = $this->argument('url'); |
||
40 | |||
41 | $this->file = $this->getFileName(); |
||
42 | |||
43 | $this->path = $this->getFilePath(); |
||
44 | |||
45 | $resource = fopen($this->url, 'r'); |
||
46 | |||
47 | Storage::put($this->getFileNameWithPath(), $resource); |
||
48 | |||
49 | fclose($resource); |
||
50 | } |
||
51 | |||
76 |