blitz-mobile-apps / laravel-graphql-passport-auth-fileupload
A full-featured, easy-to-use, well-expanded GraphQL project with Laravel Lighthouse Package, Passport Authentication, Single file and Multi files Upload Mutations
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 7
Type:project
Requires
- php: ^7.2
- barryvdh/laravel-cors: ^1.0
- fideloper/proxy: ^4.0
- fruitcake/laravel-cors: ^1.0
- joselfonseca/lighthouse-graphql-passport-auth: ^3.0
- laravel/framework: ^6.2
- laravel/passport: ^8.2
- laravel/tinker: ^2.0
- laravel/ui: ^1.1
- mll-lab/laravel-graphql-playground: ^2.0
- nuwave/lighthouse: ^4.8
Requires (Dev)
- facade/ignition: ^1.4
- fzaninotto/faker: ^1.4
- mockery/mockery: ^1.0
- nunomaduro/collision: ^3.0
- phpunit/phpunit: ^8.0
- dev-master
- dev-dependabot/composer/symfony/http-kernel-4.4.50
- dev-dependabot/composer/guzzlehttp/guzzle-6.5.8
- dev-dependabot/composer/guzzlehttp/psr7-1.8.5
- dev-dependabot/composer/league/flysystem-1.1.4
- dev-dependabot/composer/laravel/framework-6.18.43
- dev-dependabot/composer/phpseclib/phpseclib-2.0.31
- dev-dependabot/composer/symfony/http-foundation-4.4.7
This package is auto-updated.
Last update: 2025-03-01 00:30:27 UTC
README
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
Installation
Dependencies:
- Laravel 6.x
- barryvdh/laravel-cors
- joselfonseca/lighthouse-graphql-passport-auth
- nuwave/lighthouse
- mll-lab/laravel-graphql-playground
Install
1. Clone the source code or create new project.
git clone https://github.com/Blitz-Mobile-Apps/graphql-passport-auth-fileupload
OR
composer create-project Blitz-Mobile-Apps/graphql-passport-auth-fileupload
2. Set the basic config
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.
4. Install the extended package dependency.
Install the Laravel
extended repositories:
composer install
5. Run the migration
php artisan migrate
6, Publish vendor for getting configuration files and default schema
php artisan vendor:publish --provider="Nuwave\Lighthouse\LighthouseServiceProvider" --tag=schema
php artisan vendor:publish --provider="Joselfonseca\LighthouseGraphQLPassport\Providers\LighthouseGraphQLPassportServiceProvider"
7, Test and run the application
$ php artisan serve
Contributing
This is an early phase of an endless possibility. We are eagerly looking for contributions from the community. To get started:
Step 1
-
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
Step 2
- HACK AWAY! 🔨🔨🔨
Step 3
- 🔃 Create a new pull request.
Support
Reach out to us at our Website
: Blitz Mobile Apps