PHPackages                             sibche/laravel-paperclip - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. sibche/laravel-paperclip

ActiveLibrary[File &amp; Storage](/categories/file-storage)

sibche/laravel-paperclip
========================

Laravel Eloquent file attachment solution

4.1.7(5y ago)0572PHPPHP &gt;=7.4.0

Since Aug 14Pushed 5y agoCompare

[ Source](https://github.com/sibche/laravel-paperclip)[ Packagist](https://packagist.org/packages/sibche/laravel-paperclip)[ Docs](https://github.com/sibche)[ RSS](/packages/sibche-laravel-paperclip/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (6)Versions (44)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c725fae61844d8a3b2ad31bee25a0c411bfa2df1af5e921e205bb0c39e225338/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637a696d2f6c61726176656c2d7061706572636c69702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/czim/laravel-paperclip)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/d47afb8bfb2ac7c3edc367bd22fb09da26c262f555c843bd6130732608c3162d/68747470733a2f2f7472617669732d63692e6f72672f637a696d2f6c61726176656c2d7061706572636c69702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/czim/laravel-paperclip)[![Coverage Status](https://camo.githubusercontent.com/c0ed1d28a82a033eac37eca32c86906af04035b8f0f5e310514acd80c7396349/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f637a696d2f6c61726176656c2d7061706572636c69702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/czim/laravel-paperclip?branch=master)

Laravel Paperclip: File Attachment Solution
===========================================

[](#laravel-paperclip-file-attachment-solution)

Allows you to attach files to Eloquent models.

This is a re-take on [CodeSleeve's Stapler](https://github.com/CodeSleeve/stapler). It is mainly intended to be more reusable and easier to adapt to different Laravel versions. Despite the name, this should not be considered a match for Ruby's Paperclip gem.

Instead of tackling file storage itself, it uses Laravel's internal storage drivers and configuration.

This uses [czim/file-handling](https://github.com/czim/file-handling) under the hood, and any of its (and your custom written) variant manipulations may be used with this package.

Version Compatibility
---------------------

[](#version-compatibility)

LaravelPackage5.4 and older1.0, 2.15.51.5, 2.55.6, 5.72.65.8, 6.02.7Change log
----------

[](#change-log)

[View the changelog](CHANGELOG.md).

Installation
------------

[](#installation)

Via Composer:

```
$ composer require czim/laravel-paperclip
```

Autodiscover may be used to register the service provider automatically. Otherwise, you can manually register the service provider in `config/app.php`:

```
