PHPackages                             div-art/filemanager - 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. div-art/filemanager

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

div-art/filemanager
===================

create filemanager file

1.0.4(8y ago)011MITPHP

Since Jan 30Pushed 8y ago4 watchersCompare

[ Source](https://github.com/div-art/filemanager)[ Packagist](https://packagist.org/packages/div-art/filemanager)[ RSS](/packages/div-art-filemanager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Filemanager
===========

[](#filemanager)

Filemanager package for Laravel 5.5

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

[](#installation)

To install, run the following in your project directory:

```
$ composer require div-art/filemanager
```

Then in `config/app.php` add the following to the `providers` array:

```
\Divart\Filemanager\FilemanagerServiceProvider::class,
'Tymon\JWTAuth\Providers\JWTAuthServiceProvider',

```

Also in config/app.php, add the Facade class to the aliases array:

```
'Filemanager' => \Divart\Filemanager\Facades\Filemanager::class,
'JWTAuth' => 'Tymon\JWTAuth\Facades\JWTAuth'

```

Configuration
-------------

[](#configuration)

To publish Filemanager's configuration file, run the following `vendor:publish` command:

```
php artisan vendor:publish --provider="Divart\Filemanager\FilemanagerServiceProvider"
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\JWTAuthServiceProvider"

```

Now for token encryption, I need to generate a secret key by running following line of code :

```
php artisan jwt:secret

```

Now I will create middleware to check if the token is valid or not and also You can handle the exception if the token is expired.

```
php artisan make:middleware VerifyJWTToken

```

Using this middleware, you can filter the request and validate the JWT token. Now open your VerifyJWTToken middleware and put below line of code.

app/Http/Middleware/VerifyJWTToken.php pop-uptext

```
