PHPackages                             crip-laravel/filesys - 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. crip-laravel/filesys

ActiveLibrary

crip-laravel/filesys
====================

Laravel - Filemanager extension

1.2.15(8y ago)61.8k8[1 issues](https://github.com/crip-laravel/filesys/issues)1MITPHPPHP &gt;=7.0

Since Mar 25Pushed 8y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (25)Used By (1)

CRIP Filesystem manager (v.1.2.14)
==================================

[](#crip-filesystem-manager-v1214)

This package easily integrates filesystem manager in to your website. You can use it with TinyMCE editor or just stand alone popup for your input fields. CRIP Filesys Manager is based on Vue.js framework and is stand alone single page application for your filesystem control on server side.

Manager is using [Laravel Filesystem](https://laravel.com/api/5.4/Illuminate/Contracts/Filesystem/Filesystem.html)to read and write files on the server side. This means that you can configure your [Laravel driver](https://laravel.com/docs/5.4/filesystem#configuration)and manager will fit to it. Amazon S3, FTP or local storage - your choice where keep files.

[![Screenshoot](https://raw.githubusercontent.com/crip-laravel/filesys/master/src/public/images/screenshoot.png)](https://raw.githubusercontent.com/crip-laravel/filesys/master/src/public/images/screenshoot.png)

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

[](#installation)

Require package with composer:

```
composer require crip-laravel/filesys
```

If you are on lower Laravel version that 5.5 (or choose not to use package auto discovery) add this to `ServiceProvider` in configuration file of your Laravel application `config/app.php`:

```
'providers' = [
    ...
    Crip\Filesys\CripFilesysServiceProvider::class,
],
```

Copy the package resources and views to your local folders with the publish command:

```
php artisan vendor:publish --provider="Crip\Filesys\CripFilesysServiceProvider"
```

> This allows you to override package resource files by updating them directly from your application: views - `/resources/views/vendor/cripfilesys` and assets in a `/public/vendor/crip/cripfilesys` folder.

Additionally you can override package configuration file publishing it to your application config folder:

```
php artisan vendor:publish --provider="Crip\Filesys\CripFilesysServiceProvider" --tag=config
```

Filesystem manager is not configured to any of routes and you should do it manually. This allows to ad any middleware and will not conflict with any application routes, as it can be anything you choose.

Add new methods in your `app\Providers\RouteServiceProvider.php`

```
...

/**
 * Define your route model bindings, pattern filters, etc.
 *
 * @return void
 */
public function boot()
{
    Route::pattern('crip_file', '[a-zA-Z0-9.\-\/\(\)\_\% ]+');
    Route::pattern('crip_folder', '[a-zA-Z0-9.\-\/\(\)\_\% ]+');

    parent::boot();
}

/**
 * Define the routes for the application.
 *
 * @return void
 */
public function map()
{
    $this->mapApiRoutes();
    $this->mapWebRoutes();
    $this->mapPackageRoutes();
}

/**
 * Define the "package" routes for the application.
 */
protected function mapPackageRoutes() {
    Route::prefix('packages')
        ->group(base_path('routes/package.php'));
}

...
```

Now you can add new routes file to map package controllers tou your application routes. Create new file `routes/package.php` and add content:

```
