PHPackages                             itsaninho/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. itsaninho/filemanager

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

itsaninho/filemanager
=====================

create log file

1.0.0(8y ago)013MITPHP

Since Jan 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ITSaninho/Filemanager)[ Packagist](https://packagist.org/packages/itsaninho/filemanager)[ RSS](/packages/itsaninho-filemanager/feed)WikiDiscussions master Synced 3d ago

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

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

[](#filemanager)

Filemanager package for Laravel

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

[](#installation)

To install, run the following in your project directory:

```
$ composer require itsaninho/filemanager
```

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

```
\Itsaninho\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:generate

```

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

```
