daniel-de-wit / lighthouse-paperclip

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:PHP 95.1%Language:Dockerfile 2.5%Language:Makefile 2.4%