GraphQL is a query language for your API, and a server-side runtime for executing queries by using a type system you define for your data
This is sample laravel project to show you how to integrating Graphql with laravel, In this project we will show a GraphQL project integration with Laravel Lighthouse Package, Passport Authentication, Single file and Multi files Upload Mutations .for full documentation you can check here and Graphql
- Laravel 6.x
- barryvdh/laravel-cors
- joselfonseca/lighthouse-graphql-passport-auth
- nuwave/lighthouse
- mll-lab/laravel-graphql-playground
git clone https://github.com/Blitz-Mobile-Apps/graphql-passport-auth-fileupload
OR
composer create-project Blitz-Mobile-Apps/graphql-passport-auth-fileupload
cp .env.example .env
3. Edit the .env
file and set the database
and other config for the system after you copy the .env
.example file.
Install the Laravel
extended repositories:
composer install
php artisan migrate
php artisan vendor:publish --provider="Nuwave\Lighthouse\LighthouseServiceProvider" --tag=schema
php artisan vendor:publish --provider="Joselfonseca\LighthouseGraphQLPassport\Providers\LighthouseGraphQLPassportServiceProvider"
$ php artisan serve
This is an early phase of an endless possibility. We are eagerly looking for contributions from the community. To get started:
-
Option 1
- 🍴 Fork this repo!
-
Option 2
- 👯 Clone this repo to your local machine using
https://github.com/Blitz-Mobile-Apps/graphql-passport-auth-fileupload
- 👯 Clone this repo to your local machine using
- HACK AWAY! 🔨🔨🔨
- 🔃 Create a new pull request.
Reach out to us at our Website
: Blitz Mobile Apps