- Updates
- Description
- Key packages
- Installation
- Usage
21.12.2021 - added generation graphql schemas (ONLY TYPES) based on Laravel models and tables.
Lighthouse schema generator is a package for generation graphql schemas made as an extension for "nuwave/lighthouse" package.
- Lighthouse-php (https://github.com/nuwave/lighthouse)
- Doctrine/DBAL (https://github.com/doctrine/dbal)
- Set up database connection in .env configuration file.
- Run: composer require dm-la/lighthouse-schema-generator
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