New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

daniel-de-wit/nova-paperclip

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

nova-paperclip

Laravel Nova fields for laravel-paperclip attachments.

Screenshot

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

epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

4,703,233 378
eminiarts/nova-tabs

Laravel Nova - Tabs.

4,610,439 464
ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

3,888,853 616
spatie/nova-tags-field

A tags field for Nova apps

2,356,168 301
kabbouchi/nova-impersonate

A Laravel Nova field allows you to authenticate as your users.

2,268,645 234

Version History

Version Released PHP Laravel License
2.3.0 ^7.2.5 || ^8.0 ^8.74 || ^9.0 || ^10.0 || ^11.0 MIT
2.2.0 ^7.2.5 || ^8.0 ^8.74 || ^9.0 || ^10.0 MIT
2.1.0 ^7.2.5 || ^8.0 ^8.74 || ^9.0 MIT
2.0.0 ^7.2.5 || ^8.0 ^8.74 || ^9.0 MIT
1.2.0 ^7.2.5 || ^8.0 ^7.0 || ^8.2 || ^9.0 MIT