daniel-de-wit/nova-paperclip
Laravel Nova fields for laravel-paperclip attachments.
48,458
8
| Install | |
|---|---|
composer require daniel-de-wit/nova-paperclip |
|
| Latest Version: | 2.3.0 |
| PHP: | ^7.2.5 || ^8.0 |
| Laravel: | 8 – 11 |
| License: | MIT |
| Last Updated: | Feb 20, 2025 |
| Links: | GitHub · Packagist |
Maintainer: daniel-de-wit
nova-paperclip
Laravel Nova fields for laravel-paperclip attachments.

Installation
composer require daniel-de-wit/nova-paperclip
Fields
- PaperclipFile
- PaperclipImage
Usage
Add to Nova resource
<?php
namespace App\Nova;
use DanielDeWit\NovaPaperclip\PaperclipImage;
class MyResource extends Resource
{
public function fields(Request $request): array
{
return [
PaperclipImage::make('My Paperclip Image', 'image')
->mimes(['png'])
->width(1080)
->height(1080)
->rules(
'required',
'mimetypes:image/png',
'mimes:png',
'dimensions:width=1080,height=1080'
),
];
}
}
The extra methods such as width() and height() are currently only used for display. Rules should still be set manually.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.3.0 | ^7.2.5 | | ^8.74 | | MIT | |
| 2.2.0 | ^7.2.5 | | ^8.74 | | MIT | |
| 2.1.0 | ^7.2.5 | | ^8.74 | | MIT | |
| 2.0.0 | ^7.2.5 | | ^8.74 | | MIT | |
| 1.2.0 | ^7.2.5 | | ^7.0 | | MIT | |
| 1.1.0 | ^7.2.5 | | ^7.0 | | MIT | |
| 1.0.1 | ^7.2.5 | | ^7.0 | | MIT | |
| 1.0.0 | >=7.1.0 | MIT | ||
| 0.2.0 | >=7.1.0 | MIT | ||
| 0.1.0 | >=7.1.0 | MIT | ||
| 0.0.1 | >=7.1.0 | MIT |