1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-07 14:20:37 +01:00

Use \Illuminate\Support\Facades\Response instead of the \Response alias

Using the full name avoids problems where the user has commented out the alias or has aliased "Response" to something else
This commit is contained in:
Nick Howell 2016-09-01 12:48:48 -04:00 committed by GitHub
parent 45a41a38bd
commit 751cf4fe9f

View File

@ -53,7 +53,7 @@ class Response
if (function_exists('app') && is_a($app = app(), 'Illuminate\Foundation\Application')) {
$response = \Response::make($data);
$response = \Illuminate\Support\Facades\Response::make($data);
$response->header('Content-Type', $mime);
$response->header('Content-Length', $length);