PHPackages                             akanaan/model-files - 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. akanaan/model-files

ActiveLibrary

akanaan/model-files
===================

A package for laravel to help attaching files to models (images, pdfs, ... etc).

1.0.0(5y ago)010MITPHP

Since Oct 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Abdulrahman-Kanaan/model-files)[ Packagist](https://packagist.org/packages/akanaan/model-files)[ RSS](/packages/akanaan-model-files/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Model Files
===================

[](#laravel-model-files)

A package for laravel to help attaching files to models (images, pdfs, ... etc).

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install Laravel Model Files.

```
composer require akanaan/model-files
```

Run migrate to create tables

```
php artisan migrate
```

Usage
-----

[](#usage)

The package is very easy to use, just add the trait `HasFiles` to the model and create settings array for the files

```
