authorize('view', \App\Models\Asset::class); $file = config('app.private_uploads').'/signatures/'.$filename; $filetype = Helper::checkUploadIsImage($file); $contents = file_get_contents($file, false, stream_context_create(['http' => ['ignore_errors' => true]])); if ($contents === false) { \Log::warn('File '.$file.' not found'); return false; } else { return Response::make($contents)->header('Content-Type', $filetype); } } }