# Installation
Use composer in your new or existing Laravel 7.x or 8.x project:
composer require deved/laravel-magento2-graphql
# Configuration
Run the following command to publish the config file
php artisan vendor:publish --provider="Deved\Magento2Graphql\Magento2GraphqlServiceProvider"
This will add magento2-graphql.php
file to your config folder. Now you have to specify your magento GraphQL endpoint in
this file or in yor .env
file.
# In magento2-graphql.php
'server' => 'https://your.shop/graphql'
# In .env file
GRAPHQL_SERVER=https://your.shop/graphql