-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2a9b43a
Showing
1,050 changed files
with
224,475 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
## Filemanager ## | ||
|
||
This package is to add [simogeo/Filemanager](https://github.com/simogeo/Filemanager) to Laravel 5.1 installation. | ||
|
||
### Installation ### | ||
|
||
Add Filemanager to your composer.json file to require Filemanager : | ||
``` | ||
require : { | ||
"laravel/framework": "5.1.*", | ||
"bestmomo/filemanager": "dev-master" | ||
} | ||
``` | ||
|
||
Update Composer : | ||
``` | ||
composer update | ||
``` | ||
|
||
The next required step is to add the service provider to config/app.php : | ||
``` | ||
Bestmomo\Filemanager\ScafoldServiceProvider::class, | ||
``` | ||
|
||
### Publish ### | ||
|
||
The last required step is to publish assets in your application with : | ||
``` | ||
php artisan vendor:publish | ||
``` | ||
|
||
### User model ### | ||
|
||
For Filemanager php connector you must create at least this function in user model : | ||
|
||
``` | ||
public function accessMediasAll() | ||
{ | ||
// return true for access to all medias | ||
} | ||
``` | ||
|
||
If you want some users access only to one folder add this function : | ||
|
||
``` | ||
public function accessMediasFolder() | ||
{ | ||
// return true for access to one folder | ||
} | ||
``` | ||
For this function to work each user must have a "user" name in users table. A folder with this name will be created in filemanager/userfiles folder. | ||
|
||
### Integration ### | ||
|
||
You can now integrate Filemanager with any editor like CKEditor. | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "bestmomo/filemanager", | ||
"description": "To add filemanager to Laravel 5.1", | ||
"homepage": "http://github.com/bestmomo/filemanager", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name":"Simon Georget", | ||
"email":"[email protected]", | ||
"homepage":"http://www.empreinte-urbaine.eu", | ||
"role": "Developer" | ||
}, | ||
{ | ||
"name": "Bestmomo", | ||
"email": "[email protected]", | ||
"homepage":"http://laravel.sillo.org" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.5.9" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Bestmomo\\Filemanager\\": "src/" | ||
} | ||
} | ||
} |
Oops, something went wrong.