daniel-de-wit / lighthouse-paperclip
Lighthouse GraphQL Directives for Paperclip attachment support
Installs: 34 691
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/daniel-de-wit/lighthouse-paperclip
Requires
- php: ^8.1
- czim/laravel-paperclip: ^5
- nuwave/lighthouse: ^6
Requires (Dev)
- laravel/pint: ^1.2
- nunomaduro/larastan: ^2.2
- orchestra/testbench: ^7.11
- php-coveralls/php-coveralls: ^2.4
- phpstan/phpstan-mockery: ^1.1
- phpstan/phpstan-phpunit: ^1.2
- phpunit/phpunit: ^9.5
- rector/rector: ^0.14.8
README
This package will add two directives that will support working with czim/laravel-paperclip.
Installation
You can install the package via composer:
composer require daniel-de-wit/lighthouse-paperclip
Usage
Apply the @attachment directive to get an url for the attachment.
type Blog { image: String @attachment }
Apply the @variant to automatically generate an enum for available variant resizes.
type Blog { image(variant: _ @variant): String @attachment }
Testing
composer test
Development (docker)
make setup
make test
PHP CLI
make app
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
