PHPackages                             naturalweb/nwlaravel-filestorage - 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. naturalweb/nwlaravel-filestorage

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

naturalweb/nwlaravel-filestorage
================================

FileStorage for the Laravel PHP Framework

358PHP

Since Oct 30Pushed 11y ago2 watchersCompare

[ Source](https://github.com/naturalweb/NwLaravel-FileStorage)[ Packagist](https://packagist.org/packages/naturalweb/nwlaravel-filestorage)[ RSS](/packages/naturalweb-nwlaravel-filestorage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NwLaravel FileStorage
=====================

[](#nwlaravel-filestorage)

### Installation

[](#installation)

- [API on Packagist](https://packagist.org/packages/naturalweb/nwlaravel-filestorage)
- [API on GitHub](https://github.com/naturalweb/NwLaravel-FileStorage)

In the `require` key of `composer.json` file add the following

```
"naturalweb/nwlaravel-filestorage": "~0.1"

```

Run the Composer update comand

```
$ composer update

```

In your `config/app.php` add `'NwLaravel\FileStorage\FileStorageServiceProvider'` to the end of the `$providers` array

```
'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'NwLaravel\FileStorage\FileStorageServiceProvider',

),
```

At the end of `config/app.php` add `'FileStorage'    => 'NwLaravel\FileStorage\FileStorageFacade'` to the `$aliases` array

```
'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'FileStorage'    => 'NwLaravel\FileStorageFacade',

),
```

### Configuration

[](#configuration)

Publish config using artisan CLI.

```
php artisan config:publish naturalweb/nwlaravel-filestorage

```

The configuration to `app/config/packages/naturalweb/nwlaravel-filestorage/config/filestorage.php`. This file will look somewhat like:

```
