Frequently Asked Questions

Getting Started & Laravel Integration

How do I connect Hygraph to my Laravel application?

To connect Hygraph to your Laravel application, you can use a package like softonic/laravel-graphql-client or any HTTP client such as Guzzle. Install Guzzle via Composer with composer require guzzlehttp/guzzle. Then, create a service (e.g., GraphqlService) to handle API requests, inject it into your controller, and use it to fetch data from Hygraph's GraphQL API. Finally, pass the data to your Blade views for rendering. For a step-by-step guide and code examples, refer to the integration section on this page and the Hygraph documentation.

Is Hygraph a good fit for Laravel projects?

Yes, Hygraph is an ideal headless CMS for Laravel websites and applications. Its GraphQL-native, API-first approach allows you to add content management capabilities to Laravel apps in minutes. Developers benefit from precise data queries and flexible front-end technology choices, while content editors enjoy a user-friendly interface for easy updates. Hygraph's decoupled architecture supports multiplatform content management and seamless integration with Laravel's ORM. Learn more.

What frameworks does Hygraph support for integration?

Hygraph supports integration with several popular frameworks, including Laravel, Astro, Next.js, Nuxt.js, and SvelteKit. This flexibility allows you to choose the best technology stack for your project while leveraging Hygraph's content management capabilities. See all supported frameworks.

Features & Capabilities

What are the key features of Hygraph?

Hygraph offers a range of features, including:

For a full list of features, visit the Hygraph features page.

Does Hygraph support multiplatform content management?

Yes, as a headless CMS, Hygraph supports multiplatform content management. Its API-based architecture allows you to deliver content to websites, mobile apps, and other digital platforms from a single source, ensuring consistency and flexibility across all channels. Learn more about headless CMS.

How does Hygraph's GraphQL-native approach benefit Laravel developers?

Hygraph's GraphQL-native approach allows Laravel developers to make precise data queries, reducing over-fetching and optimizing app performance. This enables efficient integration with Laravel's ORM and supports flexible, modular development. Developers can quickly set up content APIs and manage schemas using Hygraph's management API. Read more about GraphQL with Hygraph.

What performance optimizations does Hygraph offer?

Hygraph provides several performance optimizations, including Smart Edge Cache for faster content delivery and high-performance endpoints for reliable, scalable API access. The platform continuously improves its GraphQL API performance and offers practical advice for developers to optimize their API usage. Read more about performance improvements.

Security & Compliance

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant (achieved August 3rd, 2022), ISO 27001 certified for its hosting infrastructure, and GDPR compliant. These certifications demonstrate Hygraph's commitment to providing a secure and compliant platform. For more details, visit the security features page or view the security and compliance report.

What security features does Hygraph provide?

Hygraph offers enterprise-grade security features, including granular permissions, SSO integrations, audit logs, encryption at rest and in transit, regular data backups, and a transparent process for reporting security issues. These features help protect customer data and ensure compliance with industry standards. Learn more about Hygraph security.

Use Cases & Benefits

Who can benefit from using Hygraph with Laravel?

Hygraph is designed for developers, product managers, and marketing teams working in industries such as ecommerce, automotive, technology, food and beverage, and manufacturing. It's ideal for organizations modernizing legacy tech stacks, global enterprises needing localization and content federation, and any business seeking to deliver exceptional digital experiences at scale. See use cases.

What problems does Hygraph solve for Laravel projects?

Hygraph addresses operational inefficiencies (such as dependency on developers for content updates), financial challenges (like high operational costs and slow speed-to-market), and technical issues (including schema evolution, integration difficulties, and performance bottlenecks). Its user-friendly interface, GraphQL-native architecture, and content federation capabilities help modernize content management and streamline workflows. See related KPIs.

What are some customer success stories with Hygraph?

Hygraph has helped companies like Komax achieve a 3X faster time-to-market, Autoweb increase website monetization by 20%, and Samsung improve customer engagement by 15% with a scalable, composable member platform. For more examples, visit the customer stories page.

Implementation & Support

How easy is it to get started with Hygraph?

Hygraph is designed for easy onboarding. You can start immediately with a free API playground or a free forever developer account. For larger projects, request a demo. The structured onboarding process includes introduction calls, account provisioning, business and technical kickoffs, and content schema setup. Extensive documentation, webinars, and how-to videos are available for self-paced learning. See documentation.

What support and training does Hygraph provide?

Hygraph offers 24/7 support via chat, email, and phone, real-time troubleshooting through Intercom chat, a community Slack channel, and extensive documentation. Enterprise customers receive a dedicated Customer Success Manager (CSM) and structured onboarding. Training resources include webinars, live streams, and how-to videos. Access Hygraph documentation.

How long does it take to implement Hygraph?

Implementation time varies by project scope. For example, Top Villas launched a new project within 2 months from the initial touchpoint, and Si Vale met aggressive deadlines during their initial implementation. The platform's free API playground and developer account allow teams to start immediately. Read the Top Villas case study.

What kind of maintenance and upgrades does Hygraph require?

Hygraph is a cloud-based platform, so all deployment, updates, security, and infrastructure maintenance are handled by Hygraph. Regular feature upgrades and improvements are seamlessly integrated, requiring no manual intervention. Customers can rely on 24/7 support and extensive documentation for troubleshooting. Learn more.

Customer Experience & Recognition

How do customers rate the ease of use of Hygraph?

Customers frequently praise Hygraph's intuitive user interface, describing it as easy to set up and use—even for non-technical users. Hygraph was recognized for "Best Usability" in Summer 2023, and users appreciate features like custom app integration for content quality checks. Try Hygraph.

Additional Resources

Where can I find more resources about using Hygraph with Laravel and other frameworks?

Hygraph's blog and documentation offer guides such as "7 best CMSs that pair well with Laravel," "Top 8 CMSs to consider for your Vue.js project," and "10 best CMSs for Next.js in 2025." These resources provide comparisons, integration tips, and best practices for using Hygraph with various frameworks. Read the Laravel CMS guide | Vue.js CMS guide | Next.js CMS guide.

Introducing Click to Edit

Headless CMS for Laravel

Hygraph is the ideal Headless CMS for Laravel websites and applications. Read further to learn how our API-first CMS allows you to add components to your Laravel apps in minutes and enable your website's content to be managed from a powerful CMS.

Step #1 - Create a service to handle the interaction with the GraphQL API

In Laravel, to query a GraphQL API, you can use a package like softonic/laravel-graphql-client or any HTTP client like Guzzle to make the HTTP requests. In the example on the right, we are using Guzzle, a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. You'll need to install Guzzle via Composer:

composer require guzzlehttp/guzzle

Then you move on to setting up the service.

namespace App\Services;
use GuzzleHttp\Client;
class GraphqlService
{
protected $client;
protected $headers;
public function __construct()
{
$this->client = new Client([
'base_uri' => 'https://api-<region>.hygraph.com/v2/<some hash>/master',
]);
$this->headers = [
'Authorization' => 'Bearer ' . env('GRAPHQL_API_TOKEN'),
'Accept' => 'application/json',
'Content-Type' => 'application/json',
];
}
public function query($query)
{
$response = $this->client->post('', [
'json' => ['query' => $query],
'headers' => $this->headers,
]);
return json_decode($response->getBody()->getContents(), true);
}
}

Step #2 - Inject the service into a controller

In this setup, you have a GraphqlService that handles the actual API calls with the necessary authorization headers, and you have a controller that uses this service to fetch data, which is then passed to a Blade view.

Remember to add proper error handling and response checking to make sure your application can handle issues like network errors or data fetching problems gracefully.

namespace App\Http\Controllers;
use App\Services\GraphqlService;
class ProductController extends Controller
{
protected $graphqlService;
public function __construct(GraphqlService $graphqlService)
{
$this->graphqlService = $graphqlService;
}
public function index()
{
$query = <<<GQL
query {
products {
name
description
slug
availability
imageUrl
}
}
GQL;
$data = $this->graphqlService->query($query);
// Pass the data to your Blade view
return view('products.index', ['products' => $data['data']['products']]);
}
}

Step #3 - Use the data in Blade views

Once you have retrieved the data from the GraphQL API and passed it to your Blade view, you can iterate over the data and display it using Blade's templating syntax.

In this Blade template, we are extending a layout file (layouts.app), and within the content section, we check if there are products to display. We use a foreach loop to iterate over each product and create a card for it. Blade's {{ }} syntax is used to escape and print the data, such as the product's name, description, and image URL.

resources/views/products/index.blade.php
{{-- resources/views/products/index.blade.php --}}
@extends('layouts.app')
@section('content')
<div class="container">
@if (count($products) > 0)
<div class="row">
@foreach ($products as $product)
<div class="col-md-4">
<div class="card mb-4 shadow-sm">
<img class="card-img-top" src="{{ $product['imageUrl'] }}" alt="{{ $product['name'] }}">
<div class="card-body">
<h5 class="card-title">{{ $product['name'] }}</h5>
<p class="card-text">{{ $product['description'] }}</p>
<div class="d-flex justify-content-between align-items-center">
<small class="text-muted">{{ $product['availability'] ? 'Available' : 'Not Available' }}</small>
<a href="{{ url('/products/' . $product['slug']) }}" class="btn btn-primary">View Product</a>
</div>
</div>
</div>
</div>
@endforeach
</div>
@else
<p>No products found.</p>
@endif
</div>
@endsection

Start building with Laravel

We made it really easy to set up your project in Hygraph and use our GraphQL API within your Laravel project.

Quickstart

Check out our docs to see how you can quickly set up your Hygraph project and enable the content API for your Laravel website or app.

Learn GraphQL

Hygraph is GraphQL-native Headless CMS offers precise data retrieval, minimizing over-fetching and optimizing efficiency.

Examples

Look at some of the example projects to see Hygraph in action.

Why Hygraph

Choosing Hygraph for your Laravel project

Using a GraphQL-native headless CMS with Laravel streamlines web development and content management. Developers can make precise data queries with GraphQL, optimizing app performance, while Laravel's ORM elegantly handles the data. The headless CMS's decoupled nature allows for flexible front-end technology choices.

Content editors benefit from user-friendly CMS interfaces, allowing easy content updates without technical complexity. Additionally, the CMS's ability to push content across various platforms ensures a uniform digital presence, enhancing the user experience.

laravel cms

Developer Experience

We try to be the most un-opinionated CMS on the market with a wide collection of open source example projects to get you started.

Headless CMS

As a headless CMS (i.e. API based content management), you can be as modular and flexible as you need. We even support multiplatform content management.

Management API

Hygraph boasts a flexible and powerful management API to manage your content and schema, as well as a blazing fast content API.

Get started for free, or request a demo
to discuss larger projects