Looking to hire Laravel developers? Try LaraJobs

laravel-ide-helper-hook-paperclip maintained by daniel-de-wit

Description
Add Paperclip support to Laravel IDE Helper
Author
Last update
2025/03/11 09:27 (dev-main)
License
Downloads
27 805

Comments
comments powered by Disqus

Laravel IDE Helper Hook Paperclip

Software License Tests Coverage Status Latest Version on Packagist Total Downloads

A Laravel Package for adding Laravel Paperclip support to Laravel IDE Helper Laravel IDE Helper.

Installation

You can install the package via composer:

composer require --dev daniel-de-wit/laravel-ide-helper-hook-paperclip

The Paperclip Hook is loaded using Package Discovery, when disabled read Manual Installation.

Usage

Run standard model generation commands as normal:

php artisan ide-helper:models "App\Models\Post"

Docblocks will be added to the model

* @property \Czim\Paperclip\Contracts\AttachmentInterface|\SplFileInfo|\Czim\FileHandling\Storage\File\SplFileInfoStorableFile|\Czim\FileHandling\Contracts\Support\RawContentInterface|string $image

Manual Installation

When disabled, register the LaravelIdeHelperHookPaperclipServiceProvider manually by adding it to your config/app.php

/*
 * Package Service Providers...
 */
 DanielDeWit\LaravelIdeHelperHookPaperclip\Providers\LaravelIdeHelperHookPaperclipServiceProvider::class,

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.