To add filemanager to Laravel 5.1

Installs: 35 998

Dependents: 1

Suggesters: 0

Security: 0

Stars: 45

Watchers: 5

Forks: 11

Open Issues: 13


V1.03 2015-11-30 14:24 UTC

This package is auto-updated.

Last update: 2024-06-25 05:51:37 UTC



This package is to add simogeo/Filemanager to Laravel 5.2 installation.


Add Filemanager to your composer.json file to require Filemanager :

    require : {
        "laravel/framework": "5.2.*",
        "bestmomo/filemanager": "1.1.*"

Update Composer :

    composer update

The next required step is to add the service provider to config/app.php :



The last required step is to publish assets in your application with :

    php artisan vendor:publish --provider="Bestmomo\Filemanager\FilemanagerServiceProvider"

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

A folder with user{id} name will be created in filemanager/userfiles folder.


You can now integrate Filemanager with any editor.

Simple example integration with CKEditor :

<!DOCTYPE html>
        <meta charset="utf-8">
        <script src="//"></script>
        <textarea name="editor"></textarea>
            CKEDITOR.replace( 'editor', {
                filebrowserBrowseUrl: '{!! url('filemanager/index.html') !!}'