exists($hash)) { $content = CdnHash::where('hash', $hash)->first(); if(!$content || $content->deleted) return response('This item is currently unavailable.') ->header('content-type', 'text/plain'); return response($disk->get($hash)) ->header('content-type', $content->mime_type); } else { return response('Invalid hash.') ->header('content-type', 'text/plain'); } } }