Download the PHP package asanzred/filemanager-laravel without Composer
On this page you can find all versions of the php package asanzred/filemanager-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asanzred/filemanager-laravel
More information about asanzred/filemanager-laravel
Files in asanzred/filemanager-laravel
Package filemanager-laravel
Short Description Filemanager for Laravel 5.6
License MIT
Informations about the package filemanager-laravel
FileManager for Laravel
This package is based on: http://github.com/simogeo/Filemanager.git , and we have made modifications to encapsulate it, to get a single installable in our projects.
Once you have installed this package, you will have also all dependencies necessaries to work.
Installation
If you have composer installed globally, your need run:
Otherwise, you must have a composer.phar file in your base dir of your project to run:
Register Filemanager Provider
First, you need append the package provider to laravel providers array in the config/app.php file.
Configuration
This package, auto load/register "Gates Policies", "Routes", "Statics"... and you not need anything to work in your project.
But... you must configure the config vars to work successfully and customizing with your environment.
Running this command, the package copy (filemanager.php base config file) to laravel config dir, and you can edit this file.
Only one file, it's great!!
FileManager Config File
This is the config file, you can see a comment with an example of roles to limit user access to the filemanager.
To work with roles, you need to create roles table in your database with the next structure:
Then, you can access to the user role with Eloquent relations on the model:
And to activate user access, you need configure the middleware attributes of the config file:
Note1: If you only need one user access, create only admin role
Note2: If an user have multiple roles, only work's with first user role
Note3: If you not specify public_path, it will use /filemanager/
Note4: If you not specify roles_path, it will use public_path
All versions of filemanager-laravel with dependencies
laravel/framework Version >=5.6
intervention/image Version ^2.6.1
guzzlehttp/psr7 Version ^2.0.0