This package will add two directives that will support working with czim/laravel-paperclip.
You can install the package via composer:
composer require daniel-de-wit/lighthouse-paperclip
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
}
composer test
make setup
make test
PHP CLI
make app
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.