Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bestmomo committed Aug 24, 2015
0 parents commit 2a9b43a
Show file tree
Hide file tree
Showing 1,050 changed files with 224,475 additions and 0 deletions.
59 changes: 59 additions & 0 deletions README.md
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.




27 changes: 27 additions & 0 deletions composer.json
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/"
}
}
}
Loading

0 comments on commit 2a9b43a

Please sign in to comment.