LaravelPackages.net
Acme Inc.
Toggle sidebar
meharwaheed/lighthouse-schema-generator

Laravel GraphQL Schema Generator

291
0
About meharwaheed/lighthouse-schema-generator

meharwaheed/lighthouse-schema-generator is a Laravel package for laravel graphql schema generator. It currently has 0 GitHub stars and 291 downloads on Packagist. Install it with composer require meharwaheed/lighthouse-schema-generator. Discover more Laravel packages by meharwaheed or browse all Laravel packages to compare alternatives.

Last updated

Lighthouse schema generator

CONTENTS OF THIS FILE

  • Updates
  • Description
  • Key packages
  • Installation
  • Usage

UPDATES

2021-12-21 - added generation graphql schemas (ONLY TYPES) based on Laravel models and tables.

2023-09-10 - upgraded to lighthouse 6.16.

2024-02-03 - Added initial support for generating (QUERIES & MUTATIONS).

DESCRIPTION

Lighthouse schema generator is a package for generation graphql schemas made as an extension for "nuwave/lighthouse" package.

KEY PACKAGES

  • Lighthouse-php (https://github.com/nuwave/lighthouse)
  • Doctrine/DBAL (https://github.com/doctrine/dbal)

INSTALLATION

  1. Set up database connection in .env configuration file.
  2. Run:
    composer require meharwaheed/lighthouse-schema-generator

USAGE

Graphql schemas generation:

php artisan make:graphql-schema 
-f|force - force schemas generation, rewriting existing schemas --models-path= - Path for models folder, relative to app path
Comments