daniel-de-wit / laravel-ide-helper-hook-paperclip
Add Paperclip support to Laravel IDE Helper
Installs: 26 386
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: ^8.1
- barryvdh/laravel-ide-helper: ^2.9 || ^3.0
- czim/laravel-paperclip: ^5.0
- illuminate/database: ^9.0 || ^10.0
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
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.