Skip to content

A Laravel Lighthouse extension with two directives that add support for czim/laravel-paperclip.

License

Notifications You must be signed in to change notification settings

daniel-de-wit/lighthouse-paperclip

Repository files navigation

Lighthouse Paperclip

Latest Version on Packagist Software License Build Status Coverage Status Total Downloads

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.

About

A Laravel Lighthouse extension with two directives that add support for czim/laravel-paperclip.

Resources

License

Stars

Watchers

Forks

Packages

No packages published