@@ -200,7 +200,7 @@ |
||
200 | 200 | * |
201 | 201 | * @param \Illuminate\Http\Request $request |
202 | 202 | * |
203 | - * @return \Illuminate\Http\Response |
|
203 | + * @return \Symfony\Component\HttpFoundation\StreamedResponse |
|
204 | 204 | */ |
205 | 205 | public function toResponse($request) |
206 | 206 | { |
@@ -72,6 +72,9 @@ |
||
72 | 72 | return array_merge($mimeTypeHeader, $extraHeaders, $this->customRemoteHeaders, $mediaCustomHeaders); |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @return resource |
|
77 | + */ |
|
75 | 78 | public function getStream(Media $media) |
76 | 79 | { |
77 | 80 | $sourceFile = $this->getMediaDirectory($media).'/'.$media->file_name; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * |
48 | 48 | * @param string $name |
49 | 49 | * |
50 | - * @return mixed |
|
50 | + * @return Conversion |
|
51 | 51 | * |
52 | 52 | * @throws \Spatie\MediaLibrary\Exceptions\InvalidConversion |
53 | 53 | */ |