PHPackages                             czim/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. czim/laravel-paperclip

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

czim/laravel-paperclip
======================

Laravel Eloquent file attachment solution

5.0.6(1y ago)80802.1k↓30.4%16[9 issues](https://github.com/czim/laravel-paperclip/issues)[2 PRs](https://github.com/czim/laravel-paperclip/pulls)6PHPPHP ^8.1

Since Aug 14Pushed 1y ago5 watchersCompare

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

READMEChangelogDependencies (7)Versions (56)Used By (6)

[![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/4956179b670018bc165ff5bf9947d88ad1cd75081992394fd367c342b83361b6/68747470733a2f2f7472617669732d63692e636f6d2f637a696d2f6c61726176656c2d7061706572636c69702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/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)

LaravelPackagePHP Version5.4 and below1.0, 2.17.4 and below5.51.5, 2.57.4 and below5.6, 5.72.67.4 and below5.8, 62.77.4 and below7, 83.27.4 and below7, 8, 94.08.0 and up9 and up5.08.1 and upChange log
----------

[](#change-log)

[View the changelog](CHANGELOG.md).

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

[](#installation)

Via Composer:

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

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

```
