PHPackages                             mwi/laravel-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. [File &amp; Storage](/categories/file-storage)
4. /
5. mwi/laravel-files

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

mwi/laravel-files
=================

MWI Polymorphic File Management

1.2.0(5y ago)58.4k1MITPHP

Since Jan 9Pushed 5y agoCompare

[ Source](https://github.com/Midwestern-Interactive/laravel-files)[ Packagist](https://packagist.org/packages/mwi/laravel-files)[ RSS](/packages/mwi-laravel-files/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (11)Used By (0)

MWI Polymorphic Laravel Files
=============================

[](#mwi-polymorphic-laravel-files)

Simple and intuitive polymorphic file management service for Laravel.

This will support any of Laravel's disk drivers: "local", "ftp", "sftp", "s3", "rackspace"

Installation
============

[](#installation)

```
composer require mwi/laravel-files
php artisan mwi:files:install
```

Alias
-----

[](#alias)

If you would like to use the facade, add to your `config/app.php` aliases

```
'aliases' => [
    // ...
    'MWIFile' => MWI\LaravelFiles\Facades\MWIFile::class,
    // ...
],
```

Service Provider
----------------

[](#service-provider)

If you're on laravel 5.5 or later the service provider will be automatically loaded and you can skip this step, if not, add to your `config/app.php` providers

```
'providers' => [
    // ...
    MWI\LaravelFiles\ServiceProvider::class,
    // ...
],
```

Verification
------------

[](#verification)

To verify the package was set up successfully you can `use MWIFile` and then call `MWIFile::verify()` in any method.

It should return the version of the service if successful.

Set Up
======

[](#set-up)

Any model you would like to incorporate files just needs the relationship added

```
