App\Http\Controllers\TextureController::texture PHP Method

texture() public method

public texture ( $hash )
    public function texture($hash)
    {
        if (Storage::disk('textures')->has($hash)) {
            return Response::png(Storage::disk('textures')->get($hash), 200, ['Last-Modified' => Storage::disk('textures')->lastModified($hash), 'Accept-Ranges' => 'bytes', 'Content-Length' => Storage::disk('textures')->size($hash)]);
        } else {
            abort(404);
        }
    }